    :root {
        --primary-bg: #0B1224;
        --accent-blue: #007BFF;
        --logo-blue: #468EF9;
        --white-text: #F1F5F9;
        --muted-text: #A6B1C3;
        --illustration-bg: #EAF1FA;
        --graph-blue: #3A84F9;
        --primary-color: #007BFF;
        --secondary-color: #468EF9;
        --accent-color: #3A84F9;
        --dark-color: #0B1224;
        --light-color: #F1F5F9;
        --neutral-50: #f8fafc;
        --neutral-100: #f1f5f9;
        --neutral-200: #e2e8f0;
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --accent-teal: #0f766e;
        --accent-slate: #1f2937;
    }

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

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        overflow: hidden;
        height: 100vh;
        background: var(--neutral-50) !important;
        color: var(--text-primary);
    }

    /* Hide navbar and other base template elements */
    .navbar {
        display: none !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    main.container {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100vh !important;
    }

    /* Override any other background colors */
    .main-content-wrapper,
    .dashboard-container,
    .main-content {
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Animated Background */
    .login-container {
        min-height: 100vh;
        background: radial-gradient(circle at 15% 20%, rgba(226, 232, 240, 0.9), transparent 55%),
            radial-gradient(circle at 85% 35%, rgba(241, 245, 249, 0.9), transparent 50%),
            radial-gradient(circle at 50% 85%, rgba(226, 232, 240, 0.7), transparent 60%);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* Floating Background Elements */
    .floating-shapes {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
        pointer-events: none;
    }

    .shape {
        position: absolute;
        border-radius: 50%;
        backdrop-filter: blur(5px);
        animation: float 25s infinite linear;
        background: radial-gradient(circle at 30% 30%, rgba(148, 163, 184, 0.18), transparent 70%);
    }

    .shape:nth-child(1) {
        width: 120px;
        height: 120px;
        top: 15%;
        left: 10%;
        animation-delay: 0s;
    }

    .shape:nth-child(2) {
        width: 90px;
        height: 90px;
        top: 65%;
        left: 75%;
        animation-delay: 3s;
    }

    .shape:nth-child(3) {
        width: 70px;
        height: 70px;
        top: 35%;
        right: 15%;
        animation-delay: 6s;
    }

    .shape:nth-child(4) {
        width: 110px;
        height: 110px;
        bottom: 25%;
        left: 20%;
        animation-delay: 9s;
    }

    .shape:nth-child(5) {
        width: 80px;
        height: 80px;
        top: 10%;
        left: 55%;
        animation-delay: 12s;
    }

    @keyframes float {
        0% {
            transform: translateY(0px) rotate(0deg);
            opacity: 0.5;
        }

        50% {
            transform: translateY(-20px) rotate(180deg);
            opacity: 0.8;
        }

        100% {
            transform: translateY(0px) rotate(360deg);
            opacity: 0.5;
        }
    }

    /* Glass Card */
    .glass-card {
        position: relative;
        z-index: 10;
        width: 420px;
        max-width: 90vw;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 24px;
        padding: 40px;
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.05),
            0 1px 3px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        animation: slideIn 0.8s ease-out;
    }

    .glass-card:hover {
        transform: translateY(-3px);
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.08),
            0 1px 3px rgba(0, 0, 0, 0.05);
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Header */
    .login-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .logo-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .logo-icon {
        width: 320px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        transition: all 0.3s ease;
        background: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .logo-icon:hover {
        transform: translateY(-2px);
    }

    .logo-icon img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    @keyframes pulse {

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

        50% {
            transform: scale(1.05);
        }
    }

    .login-title {
        color: var(--text-primary);
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .login-subtitle {
        color: var(--text-secondary);
        font-size: 16px;
        font-weight: 400;
    }

    /* Form */
    .login-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .form-group {
        position: relative;
    }

    .form-input-container {
        position: relative;
        background: white;
        border: 1px solid var(--neutral-200);
        border-radius: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    }

    .form-input-container:focus-within {
        background: white;
        border-color: var(--accent-blue);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.1);
    }

    .input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-secondary);
        font-size: 18px;
        z-index: 1;
    }

    .form-input {
        width: 100%;
        padding: 18px 20px 18px 50px;
        background: transparent;
        border: none;
        outline: none;
        color: var(--text-primary);
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0.5px;
    }

    .form-input::placeholder {
        color: #94a3b8;
    }

    .password-toggle {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 18px;
        padding: 5px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .password-toggle:hover {
        color: var(--accent-blue);
        background: var(--neutral-100);
    }

    .form-input-container.field-invalid {
        border-color: #dc2626;
        background: #fff5f5;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
    }

    .form-input-container.field-invalid:focus-within {
        border-color: #dc2626;
        background: #fff5f5;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
        transform: translateY(0);
    }

    /* Submit Button */
    .submit-btn {
        background: linear-gradient(135deg, var(--logo-blue) 0%, var(--accent-blue) 100%);
        border: none;
        border-radius: 16px;
        color: white;
        font-size: 16px;
        font-weight: 600;
        padding: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 0;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
        position: relative;
        overflow: hidden;
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(0, 123, 255, 0.35);
    }

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

    .btn-icon {
        transition: transform 0.3s ease;
    }

    .submit-btn:hover .btn-icon {
        transform: translateX(3px);
    }

    /* Loading State */
    .loading {
        opacity: 0.8;
        cursor: not-allowed;
    }

    .spinner {
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Footer */
    .login-footer {
        text-align: center;
        margin-top: 30px;
    }

    .signup-link {
        color: var(--text-secondary);
        font-size: 14px;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .signup-link:hover {
        color: var(--accent-blue);
        text-decoration: underline;
    }

    /* Error Messages */
    .error-message {
        background: #fee2e2;
        border: 1px solid #fecaca;
        color: #dc2626;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 14px;
        margin-top: 10px;
        animation: shake 0.5s ease-in-out;
    }

    .field-error {
        display: none;
    }

    .field-error.is-visible {
        display: block;
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
    }

    /* Success Animation */
    .success-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .success-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .success-content {
        background: white;
        border: 1px solid var(--neutral-200);
        border-radius: 20px;
        padding: 40px;
        text-align: center;
        color: var(--text-primary);
        animation: successPop 0.5s ease-out;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
    }

    .success-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--logo-blue), var(--accent-blue));
    }

    @keyframes successPop {
        0% {
            transform: scale(0.8);
            opacity: 0;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    .success-icon {
        width: 80px;
        height: 80px;
        background: rgba(0, 123, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 32px;
        color: var(--accent-blue);
    }

    /* Responsive Design */
    @media (max-width: 480px) {
        .glass-card {
            padding: 30px 20px;
            width: 95vw;
        }

        .login-title {
            font-size: 24px;
        }

        .form-input {
            padding: 16px 18px 16px 45px;
            font-size: 15px;
        }

        .submit-btn {
            padding: 16px;
            font-size: 15px;
        }
    }

    /* Back to Home Button */
    .back-to-home {
        position: fixed;
        top: 30px;
        left: 30px;
        z-index: 2000;
        background: white;
        border: 1px solid var(--neutral-200);
        border-radius: 50px;
        padding: 12px 24px;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .back-to-home:hover {
        background: var(--neutral-50);
        color: var(--accent-blue);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .back-to-home i {
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .back-to-home:hover i {
        transform: translateX(-3px);
    }

    /* Mobile responsive for back button */
    @media (max-width: 768px) {
        .back-to-home {
            top: 20px;
            left: 20px;
            padding: 10px 20px;
            font-size: 13px;
        }

        .back-to-home i {
            font-size: 14px;
        }
    }

.session-expired-alert {
    background: rgba(239, 68, 68, 0.16);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #111827;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
}

.resend-alert {
    background: rgba(255, 193, 7, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #000000;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
}

.resend-alert-btn {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.6);
    color: #000000;
    font-weight: 600;
}

.disabled-account-error {
    margin-top: 0;
    text-align: left;
}

.forgot-password-link {
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 500;
}

.login-assist-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -12px;
    margin-bottom: -2px;
}
