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

        .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;
        }

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

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

        /* Animated Background */
        .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;
            animation-delay: 0s;
        }

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

        .shape-3 {
            width: 300px;
            height: 300px;
            background: var(--accent);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation-delay: 10s;
        }

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

            25% {
                transform: translate(30px, -30px) scale(1.1);
            }

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

            75% {
                transform: translate(20px, 10px) scale(1.05);
            }
        }

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

        /* Card */
        .auth-card {
            width: 100%;
            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.35rem 1.2rem;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
            max-height: none;
            overflow: visible;
        }

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

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

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

        .logo h1 {
            color: white;
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

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

        /* Form */
        .form-group {
            margin-bottom: 1.25rem;
        }

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

        .auth-card .form-text,
        .auth-card .text-muted,
        .auth-card small {
            color: rgba(255, 255, 255, 0.84) !important;
        }

        .hp-field {
            position: absolute;
            opacity: 0;
            pointer-events: none;
            width: 1px;
            height: 1px;
            transform: translateX(200vw);
        }

        .form-input {
            width: 100%;
            padding: 0.875rem 1rem;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            color: white;
            font-family: inherit;
            font-size: 1rem;
            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-input.error {
            border-color: var(--error);
        }

        .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;
        }

        /* Checkbox */
        .form-checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

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

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

        .form-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.8rem;
        }

        .forgot-link {
            color: var(--primary);
            text-decoration: none;
            font-size: 0.875rem;
            transition: color 0.3s;
        }

        .forgot-link:hover {
            color: var(--accent);
        }

        /* Button */
        .btn {
            width: 100%;
            padding: 1rem;
            border: none;
            border-radius: 12px;
            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-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
        }

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

        /* Divider */
        .divider {
            display: flex;
            align-items: center;
            margin: 1.5rem 0;
            color: var(--gray);
            font-size: 0.875rem;
        }

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

        .divider span {
            padding: 0 1rem;
        }

        /* Links */
        .auth-links {
            text-align: center;
        }

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

        .auth-links p {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
        }

        .auth-links-inline p {
            margin-bottom: 0;
        }

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

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

        /* Error Messages */
        .alert {
            padding: 0.875rem 1rem;
            border-radius: 10px;
            margin-bottom: 1.25rem;
            font-size: 0.9rem;
        }

        .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;
        }

        .alert-help {
            background: rgba(56, 189, 248, 0.14);
            border: 1px solid rgba(56, 189, 248, 0.35);
            color: #bae6fd;
        }

        .auth-admin-request-link {
            width: 100%;
            max-width: 430px;
            margin: 0.5rem auto 0;
            text-align: center;
        }

        .auth-admin-request-link a {
            color: #93c5fd;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.92rem;
        }

        .auth-admin-request-link a:hover {
            color: #ffffff;
        }

        .login-smart-hints {
            margin-top: 0.65rem;
            padding: 0.7rem 0.85rem;
            border: 1px solid rgba(250, 204, 21, 0.35);
            border-radius: 10px;
            background: rgba(234, 179, 8, 0.12);
            color: #fde68a;
            font-size: 0.82rem;
            line-height: 1.55;
        }

        .login-smart-hints ul {
            margin: 0;
            padding-inline-start: 1.1rem;
        }

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

        /* Role Badges */
        .role-info {
            margin-top: 1.5rem;
            padding: 1rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
        }

        .role-info h4 {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.85rem;
            margin-bottom: 0.75rem;
            text-align: center;
        }

        .roles-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
        }

        .role-badge {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.5rem 0.75rem;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.7);
        }

        .role-badge span {
            font-size: 1rem;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .auth-card {
                padding: 1.15rem 1rem;
            }

            .auth-card form,
            .auth-card .alert,
            .auth-card .alert-help,
            .auth-card .divider,
            .auth-card .auth-links,
            .auth-card .role-info,
            .auth-admin-request-link {
                max-width: none;
            }

            .logo h1 {
                font-size: 1.5rem;
            }

            .roles-grid {
                grid-template-columns: 1fr;
            }
        }

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

        @media (max-height: 860px) {
            .logo {
                margin-bottom: 1rem;
            }

            .logo-icon {
                font-size: 2.2rem;
            }

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

            .form-row {
                margin-bottom: 0.9rem;
            }

            .btn {
                padding: 0.75rem;
            }

            .divider {
                margin: 0.8rem 0;
            }
        }

        @media (max-height: 740px) {
            .auth-container {
                align-items: flex-start;
                padding-top: 0.6rem;
            }

            .auth-card {
                border-radius: 16px;
            }
        }
    
