:root {
            --brand-primary: #435ebe;
            --brand-primary-hover: #354a96;
            --bg-body: #f8fafc;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--bg-body);
            /* Modern Mesh Gradient Background */
            background-image:
                radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
                radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
                radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
            background-size: cover;
            background-attachment: fixed;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-container {
            width: 100%;
            max-width: 440px;
            padding: 1rem;
        }

        .login-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid #e2e8f0;
            border-radius: 1.5rem;
            box-shadow: none;
            padding: 2.5rem;
            position: relative;
            overflow: hidden;
        }

        /* Top Accent Line */
        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--brand-primary), #60a5fa);
        }

        .logo-img {
            width: 100px;
            height: 100px;
            object-fit: contain;
            margin-bottom: 0.5rem;
            border-radius: 50%;
            border: 2px solid #e2e8f0;
        }

        .app-title {
            font-weight: 700;
            color: #1e293b;
            margin-top: 1rem;
            margin-bottom: 0.25rem;
        }

        .app-subtitle {
            color: #64748b;
            font-size: 0.9rem;
            margin-bottom: 2rem;
        }

        .form-floating>.form-control {
            border-radius: 0.75rem;
            border: 1px solid #e2e8f0;
            height: calc(3.5rem + 2px);
            line-height: 1.25;
        }

        .form-floating>.form-control:focus {
            border-color: var(--brand-primary);
            box-shadow: 0 0 0 4px rgba(67, 94, 190, 0.15);
        }

        .form-floating>label {
            padding-top: 1rem;
            padding-bottom: 1rem;
        }

        .btn-login {
            background-color: var(--brand-primary);
            border: none;
            border-radius: 0.75rem;
            padding: 0.75rem;
            font-weight: 600;
            font-size: 1rem;
            letter-spacing: 0.025em;
            transition: all 0.2s ease;
        }

        .btn-login:hover:not(:disabled) {
            background-color: var(--brand-primary-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px rgba(67, 94, 190, 0.3);
        }

        .btn-login:disabled {
            background-color: #94a3b8;
            transform: none;
        }

        .divider-text {
            display: flex;
            align-items: center;
            text-align: center;
            color: #94a3b8;
            font-size: 0.85rem;
            margin: 1.75rem 0;
        }

        .divider-text::before,
        .divider-text::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid #e2e8f0;
        }

        .divider-text::before {
            margin-right: 1rem;
        }

        .divider-text::after {
            margin-left: 1rem;
        }

        .google-btn {
            background-color: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            color: #475569;
            font-weight: 600;
            font-size: 0.95rem;
            padding: 0.75rem;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-decoration: none;
        }

        .google-btn:hover {
            background-color: #f8fafc;
            border-color: #cbd5e1;
            color: #1e293b;
            transform: translateY(-1px);
        }

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

        .forgot-link:hover {
            color: var(--brand-primary-hover);
            text-decoration: underline;
        }

        /* Custom Validation Styling */
        .invalid-feedback {
            background: rgba(239, 68, 68, 0.05);
            border: 1px solid rgba(239, 68, 68, 0.2);
            color: #ef4444;
            padding: 0.6rem 0.8rem;
            border-radius: 0.75rem;
            font-size: 0.85rem;
            font-weight: 500;
            margin-top: 0.5rem;
            display: none;
            align-items: center;
            backdrop-filter: blur(4px);
        }

        .invalid-feedback::before {
            content: "!";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            background: #ef4444;
            color: white;
            border-radius: 50%;
            margin-right: 0.6rem;
            font-size: 0.75rem;
            font-weight: 800;
            flex-shrink: 0;
        }

        .was-validated .form-control:invalid {
            border-color: #ef4444;
            background-image: none;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
        }

        .was-validated .form-control:invalid:focus {
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
        }

        .was-validated .form-control:invalid~.invalid-feedback {
            display: flex;
            animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .was-validated .form-control:valid {
            border-color: #e2e8f0;
            background-image: none;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }

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

        .alert-glass-danger {
            background: rgba(254, 226, 226, 0.4);
            border: 1px solid rgba(239, 68, 68, 0.2);
            color: #dc2626;
            padding: 0.8rem 1rem;
            border-radius: 0.75rem;
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.9rem;
            backdrop-filter: blur(4px);
            display: flex;
            align-items: flex-start;
            animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .alert-glass-danger::before {
            content: "!";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 20px;
            height: 20px;
            background: #dc2626;
            color: white;
            border-radius: 50%;
            margin-right: 0.75rem;
            font-weight: 800;
            font-size: 0.75rem;
            flex-shrink: 0;
            margin-top: 1px;
        }

        /* === Login Page Responsive Styles === */
        @media (max-width: 575.98px) {
            body {
                padding: 0.5rem;
                align-items: flex-start;
                padding-top: 2rem;
            }

            .login-container {
                padding: 0.5rem !important;
                max-width: 100% !important;
            }

            .login-card {
                padding: 1.75rem 1.25rem !important;
                border-radius: 1.25rem !important;
            }

            .logo-img {
                width: 72px !important;
                height: 72px !important;
            }

            .app-title {
                font-size: 1.25rem !important;
                margin-top: 0.75rem !important;
            }

            .app-subtitle {
                font-size: 0.8rem !important;
                margin-bottom: 1.5rem !important;
            }

            .form-floating>.form-control {
                height: calc(3.25rem + 2px) !important;
                font-size: 1rem !important;
            }

            .form-floating>label {
                font-size: 0.9rem;
            }

            .btn-login {
                padding: 0.875rem !important;
                font-size: 0.9375rem !important;
            }

            .google-btn {
                padding: 0.875rem !important;
                font-size: 0.875rem !important;
            }

            .forgot-link {
                font-size: 0.8rem !important;
            }

            .divider-text {
                font-size: 0.75rem !important;
                margin: 1.25rem 0 !important;
            }

            .invalid-feedback {
                font-size: 0.8rem !important;
                padding: 0.5rem 0.65rem !important;
            }

            .alert-glass-danger {
                font-size: 0.8rem !important;
                padding: 0.7rem 0.875rem !important;
            }

            .modal-dialog {
                margin: 0.75rem !important;
            }

            .modal-content {
                border-radius: 1rem !important;
            }

            .modal-body {
                padding: 1.25rem !important;
            }
        }

        @media (min-width: 576px) and (max-width: 767.98px) {
            .login-container {
                max-width: 420px !important;
            }

            .login-card {
                padding: 2rem 1.75rem !important;
            }
        }

        @media (max-height: 600px) {
            body {
                align-items: flex-start;
                padding-top: 1rem;
            }

            .login-card {
                padding: 1.5rem 1.25rem !important;
            }

            .logo-img {
                width: 64px !important;
                height: 64px !important;
            }

            .app-title {
                font-size: 1.125rem !important;
                margin-top: 0.5rem !important;
            }

            .app-subtitle {
                font-size: 0.8rem !important;
                margin-bottom: 1rem !important;
            }
        }

        @keyframes shake {

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

            10%,
            30%,
            50%,
            70%,
            90% {
                transform: translateX(-4px);
            }

            20%,
            40%,
            60%,
            80% {
                transform: translateX(4px);
            }
        }

        .shake {
            animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
        }