@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kantumruy Pro', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e9fd4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 560px;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header .icon-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 4px;
}

.auth-header p {
    font-size: 14px;
    color: #6b7280;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5298;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.12);
}

.gender-options {
    display: flex;
    gap: 10px;
}

.gender-options label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.gender-options input {
    accent-color: #2a5298;
    width: auto;
}

.gender-options input:checked + span {
    color: #1e3c72;
}

.gender-options label:has(input:checked) {
    border-color: #2a5298;
    background: #eef2ff;
}

.password-field {
    position: relative;
}

.password-field .toggle-eye {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 13px;
    user-select: none;
}

.password-field input {
    padding-left: 40px;
}

.hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.hint.error-text {
    color: #ef4444;
}

.hint.ok-text {
    color: #16a34a;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.switch-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.switch-link a {
    color: #2a5298;
    font-weight: 700;
    text-decoration: none;
}

.switch-link a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 26px 20px;
        border-radius: 16px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}
