/* ============================================
   Login Page — v3 — Full-screen mobile card
   ============================================ */

@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #f9fafb;
    min-height: 100vh;
    overflow-x: hidden;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}
[x-cloak] { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes iconPop {
    0% { transform: translateY(-50%) scale(1); }
    40% { transform: translateY(-50%) scale(1.15) rotate(-5deg); }
    100% { transform: translateY(-50%) scale(1.15) rotate(0deg); }
}
@keyframes highlightSlide {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

/* Layout */
.login-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    overflow: hidden;
}

/* LEFT PANEL (desktop only) */
.left-panel {
    display: none;
    width: 50%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    position: relative;
    overflow: hidden;
}
.left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
    color: white;
    width: 100%;
    min-height: 100vh;
}
.logo-container { margin-bottom: 2.5rem; }
.logo-inner {
    width: 8rem;
    height: 8rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}
.logo-inner i { font-size: 4rem; color: white; }
.left-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.left-title .accent {
    display: block;
    font-size: 4rem;
    color: #fef3c7;
}
.left-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 32rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}
.features-list { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: 28rem; }
.feature-item {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    transition: transform 0.3s ease;
}
.feature-item:hover { transform: translateX(-8px); }
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}
.feature-icon i { font-size: 1.25rem; color: white; }
.feature-text {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    flex: 1;
    text-align: right;
}

/* RIGHT PANEL — Desktop */
.right-panel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f9fafb;
    min-height: 100vh;
}
.form-wrapper {
    width: 100%;
    max-width: 30rem;
}

/* Language selector */
.lang-selector {
    display: flex;
    justify-content: flex-end;
    gap: .25rem;
    background: white;
    border-radius: .75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: .25rem;
    width: fit-content;
    margin-left: auto;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}
.lang-selector a {
    padding: .4rem .8rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    color: #6b7280;
    transition: all .15s;
    white-space: nowrap;
}
.lang-selector a:hover { background: #fef3c7; color: #92400e; }
.lang-selector a.active { background: #FFD700; color: #78350f; }

/* Form card */
.form-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Tabs */
.auth-toggle {
    display: flex;
    gap: .5rem;
    padding: .35rem;
    background: #f3f4f6;
    border-radius: .875rem;
    margin-bottom: 1.5rem;
}
.auth-toggle button {
    flex: 1;
    padding: .75rem 1rem;
    font-weight: 600;
    font-size: .9rem;
    border-radius: .625rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.auth-toggle button.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}
.auth-toggle button:not(.active):hover {
    background: rgba(255, 215, 0, 0.15);
    color: #b45309;
}

/* Method toggle */
.method-toggle { margin-bottom: 1.25rem; }
.method-container {
    display: flex;
    background: #f3f4f6;
    border-radius: .75rem;
    padding: .3rem;
    gap: .25rem;
}
.method-option {
    flex: 1;
    padding: .65rem .5rem;
    text-align: center;
    font-weight: 600;
    font-size: .85rem;
    border-radius: .5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.method-option.active {
    background: white;
    color: #b45309;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 700;
}
.method-option:not(.active):hover { color: #92400e; }

/* FORM GROUPS */
.form-group {
    position: relative;
    margin-bottom: 1.25rem;
    --highlight-color: #FFD700;
}
.form-input {
    width: 100%;
    padding: 1rem 3.25rem 1rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: .875rem;
    font-size: .95rem;
    color: #111827;
    font-family: inherit;
    outline: none;
    display: block;
    position: relative;
    z-index: 2;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.form-input::placeholder { color: transparent; }
.form-group:hover .form-input {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.08);
}
.form-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

/* Floating label */
.input-label {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: .95rem;
    font-weight: 500;
    pointer-events: none;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 .5rem;
    z-index: 3;
    background: #ffffff;
}
.form-group:hover .input-label { color: #b45309; }
.form-input:focus + .input-label,
.form-input:not(:placeholder-shown) + .input-label {
    transform: translateY(-32px) scale(.85);
    color: #d97706;
    font-weight: 700;
}

/* Icon */
.input-icon-wrapper {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 3;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color .3s ease;
}
.form-group:hover .input-icon-wrapper { color: #fbbf24; }
.form-input:focus ~ .input-icon-wrapper {
    color: #d97706;
    animation: iconPop 0.4s ease forwards;
}

/* Bottom bar */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    border-radius: 0 0 .875rem .875rem;
    z-index: 4;
    transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-input:focus ~ .form-group::after,
.form-group:has(.form-input:focus)::after {
    width: 100%;
}

/* Password toggle */
.password-toggle-btn {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: color .2s;
}
.password-toggle-btn:hover { color: #d97706; }

/* OTP */
.otp-input {
    letter-spacing: 0.5em;
    text-align: center;
    direction: ltr;
    font-weight: 700;
    font-size: 1.1rem;
}
.otp-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.otp-send-btn {
    flex: 1;
    padding: .65rem 1rem;
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: .75rem;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.otp-send-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    color: #b45309;
}
.otp-send-btn:disabled { opacity: .6; cursor: not-allowed; }
.otp-timer {
    font-size: .85rem;
    font-weight: 700;
    color: #6b7280;
    min-width: 70px;
    text-align: center;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 1.05rem 2rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: .875rem;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.25rem;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    opacity: 0;
    transition: opacity .3s ease;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}
.btn-primary:hover:not(:disabled)::before { opacity: 1; }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* Messages */
.message-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    animation: slideUp 0.3s ease;
}
.message-error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: #dc2626; }
.message-success { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); color: #059669; }

/* Footer */
.form-footer-text {
    text-align: center;
    font-size: .85rem;
    color: #6b7280;
    margin-top: 1.25rem;
}
.form-link { color: #6b7280; text-decoration: none; transition: color .2s; }
.form-link:hover { color: #d97706; }
.form-link.gold {
    color: #d97706;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
}
.form-link.gold:hover { text-decoration: underline; }

/* Utilities */
.flex-1 { flex: 1; }
.text-xs { font-size: .75rem; }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.mt-3 { margin-top: .75rem; }

/* ============================================
   DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .left-panel { display: flex; }
    .right-panel { width: 50%; }
    .form-card { padding: 3rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .form-card { padding: 2.5rem; }
    .right-panel { padding: 2rem; }
}

/* ============================================
   ★ MOBILE (max-width: 1023px) — FULL SCREEN CARD
   ★ Uses high specificity to override other CSS files
   ============================================ */
@media screen and (max-width: 1023px) {
    html body .auth-page .login-wrapper,
    html body .login-wrapper {
        display: block !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        width: 100% !important;
        overflow: visible !important;
    }

    html body .auth-page .left-panel,
    html body .left-panel {
        display: none !important;
    }

    html body .auth-page .right-panel,
    html body .right-panel {
        display: block !important;
        padding: 0 !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        background: #ffffff !important;
        width: 100% !important;
    }

    html body .auth-page .form-wrapper,
    html body .form-wrapper {
        max-width: 100% !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    html body .auth-page .lang-selector,
    html body .lang-selector {
        display: flex !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 12px auto 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px !important;
    }

    html body .auth-page .lang-selector a,
    html body .lang-selector a {
        padding: 8px 10px !important;
        font-size: 12px !important;
        border-radius: .5rem !important;
    }

    html body .auth-page .form-card,
    html body .form-card {
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 22px 18px 30px !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    html body .auth-page .auth-toggle,
    html body .auth-toggle {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        width: 100% !important;
        gap: 5px !important;
        padding: 5px !important;
        margin-bottom: 18px !important;
    }

    html body .auth-page .auth-toggle button,
    html body .auth-toggle button {
        min-width: 0 !important;
        padding: 10px 4px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    html body .auth-page .method-container,
    html body .method-container {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
    }

    html body .auth-page .method-container > *,
    html body .method-container > * {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    html body .auth-page .form-group,
    html body .form-group {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body .auth-page .form-input,
    html body .form-input {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;
        font-size: 16px !important;
        background: #ffffff !important;
    }

    html body .auth-page .btn-primary,
    html body .btn-primary {
        width: 100% !important;
        min-height: 52px !important;
    }
}

/* Extra small */
@media screen and (max-width: 360px) {
    html body .auth-page .form-card,
    html body .form-card {
        padding: 18px 12px 24px !important;
    }
    html body .auth-page .lang-selector a,
    html body .lang-selector a {
        padding: 7px 8px !important;
        font-size: 11px !important;
    }
    html body .auth-page .auth-toggle button,
    html body .auth-toggle button {
        font-size: 11px !important;
    }
}

/* Final auth-shell mobile containment fix */
@media screen and (max-width: 639px) {
    body:has(.auth-shell) {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .auth-shell {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: clip !important;
    }

    .auth-shell .auth-page,
    .auth-shell .login-wrapper,
    .auth-shell .right-panel {
        box-sizing: border-box !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .auth-shell .login-wrapper {
        width: 100% !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    .auth-shell .right-panel {
        width: 100% !important;
        padding: 20px 12px !important;
    }

    .auth-shell .form-wrapper {
        width: 100% !important;
        max-width: 430px !important;
        min-width: 0 !important;
    }

    .auth-shell .form-card {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* ============================================
   v3.1 — Final fixes (added at end for priority)
   ============================================ */

/* ۱) حذف هر رنگ آبی از فیلدها در همه جا */
html body .auth-page .form-input,
html body .form-input,
body .form-input,
.form-input {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

html body .auth-page .form-input:focus,
html body .form-input:focus,
.form-input:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* ۲) کارت edge-to-edge واقعی در موبایل */
@media screen and (max-width: 1023px) {
    html body,
    html body .auth-shell,
    html body .auth-page {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    html body .auth-page .form-wrapper,
    html body .form-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body .auth-page .form-card,
    html body .form-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 18px 16px 30px !important;
    }

    /* زبان‌ها در موبایل تمیزتر */
    html body .auth-page .lang-selector,
    html body .lang-selector {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 10px 0 0 !important;
        margin: 0 auto 8px !important;
    }

    html body .auth-page .lang-selector a,
    html body .lang-selector a {
        padding: 7px 9px !important;
        font-size: 12px !important;
        border-radius: .5rem !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
    }

    html body .auth-page .lang-selector a.active,
    html body .lang-selector a.active {
        background: linear-gradient(135deg, #FFD700, #FFA500) !important;
        color: #ffffff !important;
        border-color: #FFA500 !important;
    }

    /* تب‌ها — ارتفاع کمتر و متن واضح */
    html body .auth-page .auth-toggle button,
    html body .auth-toggle button {
        padding: 10px 6px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
        height: auto !important;
        min-height: 42px !important;
        white-space: nowrap !important;
    }

    html body .auth-page .auth-toggle button i,
    html body .auth-toggle button i {
        display: inline-block !important;
        margin-inline-end: 4px !important;
        font-size: 13px !important;
    }

    /* تب طلایی وسط — متن واضح */
    html body .auth-page .auth-toggle button.active,
    html body .auth-toggle button.active {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,.15) !important;
    }

    /* label های شناور — تمیزتر */
    html body .auth-page .input-label,
    html body .input-label {
        background: #ffffff !important;
    }

    /* دکمه ارسال کد — تمیزتر */
    html body .auth-page .otp-send-btn,
    html body .otp-send-btn {
        background: #f3f4f6 !important;
        border: 1px solid #e5e7eb !important;
    }
}

/* ۳) رفع اختلاف در label فارسی که دو بار نشان داده می‌شود */
html body .auth-page .input-label + .input-label,
html body .input-label + .input-label {
    display: none !important;
}

/* ===== Role Picker (ثبت‌نام در ساب‌دامین) ===== */
.role-select-group {
    margin-bottom: 18px;
}
.role-select-group .role-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    text-align: center;
}
.role-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.role-choice {
    padding: 14px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-align: center;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.role-choice i {
    font-size: 22px;
    margin-bottom: 2px;
}
.role-choice:hover {
    border-color: #fbbf24;
    color: #b45309;
}
.role-choice.selected {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 215, 0, .3);
}
.role-choice.selected i {
    color: #fff;
}
.role-note {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.role-note.teacher-note {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.role-note.parent-note {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
@media (max-width: 480px) {
    .role-choice { padding: 10px 4px; font-size: 11px; }
    .role-choice i { font-size: 18px; }
}

/* ===== Role Picker (ثبت‌نام در ساب‌دامین) ===== */
.role-select-group {
    margin-bottom: 18px;
}
.role-select-group .role-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    text-align: center;
}
.role-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.role-choice {
    padding: 14px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-align: center;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.role-choice i {
    font-size: 22px;
    margin-bottom: 2px;
}
.role-choice:hover {
    border-color: #fbbf24;
    color: #b45309;
}
.role-choice.selected {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 215, 0, .3);
}
.role-choice.selected i {
    color: #fff;
}
.role-note {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.role-note.teacher-note {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.role-note.parent-note {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
@media (max-width: 480px) {
    .role-choice { padding: 10px 4px; font-size: 11px; }
    .role-choice i { font-size: 18px; }
}
