.auth-body .main-header,
        .auth-body .site-footer {
            display: none !important;
        }

:root {
            --primary: #667eea;
            --primary-dark: #5a67d8;
            --secondary: #764ba2;
            --accent: #f093fb;
            --success: #10b981;
            --error: #ef4444;
            --dark: #0f172a;
            --darker: #020617;
            --light: #f8fafc;
            --gray: #64748b;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .auth-body {
            font-family: 'Cairo', sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
            position: relative;
            overflow-x: hidden;
            overflow-y: auto;
            --header-offset: 0px;
        }

        .auth-body main {
            width: 100%;
            min-height: 100dvh;
            padding: clamp(14px, 3vh, 30px) 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bg-shapes {
            position: fixed;
            inset: 0;
            overflow: hidden;
            z-index: 0;
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.4;
            animation: float 20s ease-in-out infinite;
        }

        .shape-1 {
            width: 500px;
            height: 500px;
            background: var(--primary);
            top: -150px;
            right: -150px;
        }

        .shape-2 {
            width: 400px;
            height: 400px;
            background: var(--secondary);
            bottom: -100px;
            left: -100px;
            animation-delay: 5s;
        }

        @keyframes float {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
            }

            50% {
                transform: translate(-20px, 20px) scale(0.95);
            }
        }

.auth-container {
            position: relative;
            z-index: 1;
            width: 100%;
            max-width: 560px;
            padding: 0;
            margin-inline: auto;
            display: flex;
            min-height: auto;
            align-items: stretch;
            justify-content: center;
        }

        .auth-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 1.25rem 1.2rem 1.3rem;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            width: 100%;
            max-height: none;
            overflow: visible;
        }

        .auth-card form,
        .auth-card .alert,
        .auth-card .divider,
        .auth-card .auth-links {
            width: 100%;
            max-width: 460px;
            margin-inline: auto;
        }

        .logo {
            text-align: center;
            margin-bottom: 2rem;
        }

.logo-icon {
            font-size: 3rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .platform-logo {
            width: 128px;
            max-width: 48%;
            height: auto;
            margin-bottom: 0.8rem;
        }

        .logo h1 {
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .logo p {
            color: var(--gray);
            font-size: 0.9rem;
        }

        .register-form-shell {
            width: 100%;
            max-width: 430px;
            margin-inline: auto;
        }

        .register-section-title {
            margin: 0 0 0.75rem;
            color: #e2e8f0;
            font-size: 1rem;
            font-weight: 800;
        }

        .register-section-title:not(:first-child) {
            margin-top: 1.1rem;
        }

        .register-actions {
            margin-top: 0.9rem;
            display: flex;
            justify-content: stretch;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .account-type-switch {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .account-type-option {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            border: 1px solid rgba(148, 163, 184, 0.35);
            border-radius: 12px;
            padding: 0.75rem 0.9rem;
            background: rgba(15, 23, 42, 0.35);
            color: #dbeafe;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .account-type-option input {
            accent-color: var(--primary);
        }

        .account-type-option.is-active {
            border-color: rgba(59, 130, 246, 0.75);
            box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35) inset;
            background: rgba(30, 64, 175, 0.32);
            color: #ffffff;
        }

        .account-section {
            display: none !important;
            border: 1px solid rgba(148, 163, 184, 0.3);
            border-radius: 14px;
            padding: 0.9rem;
            margin-bottom: 1rem;
            background: rgba(8, 19, 44, 0.48);
        }

        .account-section.is-active {
            display: block;
        }

        .section-title {
            color: #c7d2fe;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }

        .form-group {
            margin-bottom: 0.78rem;
        }

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

        .form-label {
            display: block;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.85rem;
            margin-bottom: 0.375rem;
        }

        .auth-card .form-text,
        .auth-card .text-muted,
        .auth-card small {
            color: rgba(226, 232, 240, 0.9) !important;
        }

        .form-input {
            width: 100%;
            min-height: 50px;
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            color: white;
            font-family: inherit;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .form-input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        }

        .form-select {
            appearance: none;
        }

        .form-select option {
            color: #0f172a;
            background: #ffffff;
            font-weight: 700;
            direction: rtl;
        }

        .form-select optgroup {
            color: #0f172a;
            background: #ffffff;
        }

        .phone-input-wrap {
            display: grid;
            grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
            gap: 0.6rem;
            align-items: stretch;
        }

        .phone-input-wrap > * {
            min-width: 0;
        }


        .password-wrap {
            position: relative;
        }

        .password-wrap .form-input {
            padding-inline-end: 88px;
        }

        .password-toggle {
            position: absolute;
            inset-inline-end: 8px;
            top: 50%;
            transform: translateY(-50%);
            border: 1px solid rgba(148, 163, 184, 0.35);
            border-radius: 8px;
            background: rgba(30, 41, 59, 0.66);
            color: #e2e8f0;
            padding: 0.35rem 0.6rem;
            font-size: 0.75rem;
            cursor: pointer;
        }

        .password-tools {
            margin-top: 0.28rem;
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            justify-content: flex-end;
            gap: 0.45rem;
        }

        .password-tools .btn {
            width: auto;
            flex: 0 0 auto;
            padding: 0.45rem 0.75rem;
            font-size: 0.82rem;
            white-space: nowrap;
        }

        .password-rules-panel {
            margin: 0.2rem 0 1rem;
            padding: 0.65rem 0.75rem;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(15, 23, 42, 0.45);
        }

        .password-rules {
            display: grid;
            gap: 0.4rem;
            margin: 0;
        }

        .password-rule {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.84rem;
        }

        .password-rule-icon {
            width: 0.78rem;
            height: 0.78rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.45);
            flex-shrink: 0;
        }

        .password-rule-icon::before {
            content: '';
            width: 0.34rem;
            height: 0.34rem;
            border-radius: 999px;
            background: #fca5a5;
        }

        .password-rule.is-valid .password-rule-icon {
            background: rgba(16, 185, 129, 0.25);
            border-color: rgba(16, 185, 129, 0.6);
        }

        .password-rule.is-valid .password-rule-icon::before {
            background: #86efac;
        }

        .password-rule.is-valid .password-rule-text {
            color: #bbf7d0;
        }

        .password-rule.is-invalid .password-rule-text {
            color: #fecaca;
        }

        .password-generated-notice {
            margin: 0 0 0.7rem;
            padding: 0.7rem 0.9rem;
            border-radius: 10px;
            background: rgba(37, 99, 235, 0.14);
            border: 1px solid rgba(59, 130, 246, 0.35);
            color: #dbeafe;
            font-size: 0.86rem;
        }

        .password-generated-notice.is-hidden {
            display: none;
        }

        .teacher-preferences-box {
            border: 1px dashed rgba(148, 163, 184, 0.4);
            border-radius: 12px;
            padding: 0.75rem;
            margin-bottom: 1rem;
            background: rgba(15, 23, 42, 0.3);
        }

        .teacher-preferences-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.65rem;
            color: #cbd5e1;
            font-size: 0.85rem;
            font-weight: 700;
        }

        .teacher-preference-row {
            border: 1px solid rgba(148, 163, 184, 0.3);
            border-radius: 10px;
            padding: 0.65rem;
            margin-bottom: 0.65rem;
            background: rgba(15, 23, 42, 0.45);
        }

        .preference-row-grid {
            margin-bottom: 0;
        }

        .preference-actions {
            display: flex;
            justify-content: flex-end;
        }

        .teacher-contract-box {
            border: 1px dashed rgba(96, 165, 250, 0.45);
            border-radius: 12px;
            padding: 0.75rem;
            margin-bottom: 1rem;
            background: rgba(15, 23, 42, 0.3);
        }

        .contract-title {
            margin: 0 0 0.35rem;
            font-weight: 700;
            color: #dbeafe;
        }

        .contract-body {
            color: #cbd5e1;
            line-height: 1.7;
            margin-top: 0.65rem;
            white-space: normal;
        }

        .contract-link {
            display: inline-flex;
            margin-top: 0.55rem;
            color: #93c5fd;
            text-decoration: none;
        }

        .contract-check {
            margin: 0.8rem 0 0;
        }

        .btn-sm {
            width: auto;
            padding: 0.5rem 0.75rem;
            font-size: 0.8rem;
            border-radius: 9px;
        }

        .btn-danger {
            background: rgba(239, 68, 68, 0.18);
            border: 1px solid rgba(239, 68, 68, 0.35);
            color: #fecaca;
        }

        textarea.form-input {
            min-height: 120px;
            resize: vertical;
        }

        .form-input.error {
            border-color: var(--error);
        }

        .form-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            margin: 0.92rem 0 0.8rem;
        }

        .form-checkbox input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
            cursor: pointer;
            margin-top: 2px;
        }

        .form-checkbox label {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.85rem;
            cursor: pointer;
            line-height: 1.4;
        }

        .form-checkbox a {
            color: var(--primary);
            text-decoration: none;
        }

        .btn {
            width: 100%;
            padding: 0.875rem;
            border: none;
            border-radius: 10px;
            font-family: inherit;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .btn-ghost {
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(148, 163, 184, 0.45);
            color: #e2e8f0;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
        }

        .verification-channel-box {
            border: 1px dashed rgba(96, 165, 250, 0.45);
            border-radius: 12px;
            padding: 0.75rem;
            margin-bottom: 1rem;
            background: rgba(15, 23, 42, 0.3);
        }

        .verification-channel-title {
            color: #dbeafe;
            font-weight: 700;
            margin-bottom: 0.35rem;
        }

        .verification-channel-help {
            color: #cbd5e1;
            font-size: 0.82rem;
            margin-bottom: 0.55rem;
        }

        .verification-channel-row {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            gap: 0.6rem;
            align-items: center;
        }

        .verification-channel-status {
            margin-top: 0.5rem;
            font-size: 0.82rem;
            color: #cbd5e1;
        }

        .verification-channel-status.is-ok {
            color: #86efac;
        }

        .verification-channel-status.is-error {
            color: #fca5a5;
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 1.25rem 0;
            color: var(--gray);
            font-size: 0.85rem;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
        }

        .divider span {
            padding: 0 1rem;
        }

        .auth-links {
            text-align: center;
        }

        .auth-links-inline {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.65rem;
            text-align: start;
            flex-wrap: wrap;
        }

        .auth-links p {
            color: var(--gray);
            font-size: 0.85rem;
            margin: 0;
        }

        .auth-links-inline .cookie-settings-btn {
            padding: 0.46rem 0.72rem;
            font-size: 0.8rem;
        }

        .auth-links a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

        .auth-links a:hover {
            color: var(--accent);
        }

        .alert {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            font-size: 0.85rem;
        }

        .alert-error {
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #fca5a5;
        }

        .alert-success {
            background: rgba(16, 185, 129, 0.15);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #6ee7b7;
        }

        .error-text {
            color: #fca5a5;
            font-size: 0.75rem;
            margin-top: 0.25rem;
        }

        @media (max-width: 900px) {
            .auth-container {
                padding: 1rem;
                min-height: 100dvh;
            }

            .auth-card {
                padding: 1.1rem 1rem 1.15rem;
                border-radius: 18px;
            }

            .platform-logo {
                width: 108px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .phone-input-wrap {
                grid-template-columns: 1fr;
            }
        }

        @media (max-height: 820px) {
            .auth-body main {
                align-items: flex-start;
            }
        }

        @media (max-width: 480px) {
            .auth-card {
                padding: 1.2rem 0.95rem;
                border-radius: 14px;
            }

            .auth-card form,
            .auth-card .alert,
            .auth-card .divider,
            .auth-card .auth-links,
            .register-form-shell {
                max-width: none;
            }

            .auth-links-inline {
                justify-content: center;
                text-align: center;
            }

            .auth-container {
                padding: 0.65rem;
            }

            .platform-logo {
                width: 90px;
                margin-bottom: 0.45rem;
            }

            .form-group {
                margin-bottom: 0.75rem;
            }

            .form-label {
                font-size: 0.78rem;
                margin-bottom: 0.3rem;
            }

            .form-input {
                padding: 0.62rem 0.78rem;
                border-radius: 9px;
                font-size: 0.88rem;
            }

            .password-wrap .form-input {
                padding-inline-end: 72px;
            }

            .password-toggle {
                font-size: 0.68rem;
                padding: 0.3rem 0.5rem;
            }

            .btn {
                padding: 0.74rem;
                font-size: 0.92rem;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .phone-input-wrap {
                grid-template-columns: 1fr;
            }

            .verification-channel-row {
                grid-template-columns: 1fr;
            }

            .teacher-preferences-head {
                flex-direction: column;
                align-items: stretch;
            }
        }
    
