body {
    background: linear-gradient(135deg, #d5e4fb 0%, #ffffff 100%);
    min-height: 100vh;
    font-family: 'Sarabun', sans-serif;
}

.input-alert {
    border-color: #f18080 !important;
}

.registration-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(213, 228, 251, 0.3);
}

.form-header {
    background: linear-gradient(135deg, #d5e4fb, #b8d4f7);
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #a8c8f0;
}

.form-header h2 {
    color: #2c5aa0;
    font-weight: 600;
    margin: 0;
}

.form-control,
.form-select {
    border: 2px solid #d5e4fb;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus {
    border-color: #a8c8f0;
    box-shadow: 0 0 0 0.2rem rgba(213, 228, 251, 0.5);
    background: white;
}

.form-label {
    color: #2c5aa0;
    font-weight: 500;
    margin-bottom: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #4a7bc8);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3f73, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.input-group-text {
    background: #d5e4fb;
    border: 2px solid #d5e4fb;
    border-right: none;
    color: #2c5aa0;
}

.input-group .form-control {
    border-left: none;
}

.password-toggle {
    cursor: pointer;
    color: #2c5aa0;
}

.form-section {
    background: rgba(213, 228, 251, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(213, 228, 251, 0.3);
}

.section-title {
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d5e4fb;
}

.hospcode-search {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #d5e4fb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.search-item:hover,
.search-item.active {
    background: #d5e4fb;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item.text-muted {
    background: #f8f9fa;
    font-style: italic;
    cursor: default;
}

.search-item.text-muted:hover {
    background: #f8f9fa;
}

@media (max-width: 1024px) {
    .registration-container {
        margin: 1rem;
        border-radius: 15px;
    }

    .form-header {
        padding: 1.5rem;
        border-radius: 15px 15px 0 0;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }
}