
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: white;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .container {
            display: flex;
            max-width: 1300px;
            width: 1150px;
            height: 650px;
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .left-section {
            flex: 0 0 55%;
            background: url('../images/login2.png') no-repeat left center;
            background-size: 100%;
            margin: 0;
            padding: 0;
            position: relative;
            display: flex;
            flex-direction: column;
            color: white;
        }

        .header {
            background: linear-gradient(to right, #1e4d6b 0%, #1e4d6b 15%, #4a8fad 30%, #fbfbfbff 100%);
            height: 20px;
            position: absolute;
            top: 0;
            left: 0;
            right: -600px;
        }

        .right-section {
            flex: 0 0 500px;
            padding: 80px 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: white;
        }

        .login-box {
            background: white;
            padding: 50px 40px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        }

        .welcome-text h2 {
            font-size: 36px;
            font-weight: 700;
            color: #1e1e1e;
            margin-bottom: 10px;
        }

        .welcome-text p {
            font-size: 15px;
            color: #666;
            margin-bottom: 40px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 700;
            color: #1e1e1e;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
        }

        .form-group input {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 15px;
            transition: all 0.3s;
            background: white;
        }

        .form-group input:focus {
            outline: none;
            border-color: #2bc4f3;
            box-shadow: 0 0 0 3px rgba(43, 196, 243, 0.1);
        }

        .error-message {
            background-color: #fee;
            border: 1px solid #fcc;
            color: #c33;
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .error-message::before {
            content: '⚠';
            font-size: 18px;
        }

        .remember-me {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
        }

        .remember-me input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 10px;
            cursor: pointer;
        }

        .remember-me label {
            font-size: 14px;
            color: #666;
            cursor: pointer;
        }

        .btn-login {
            width: 100%;
            padding: 16px;
            background: #2bc4f3;
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
        }

        .btn-login:hover {
            background: #1fa8d6;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(43, 196, 243, 0.3);
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .register-link {
            text-align: center;
            margin-top: 25px;
            font-size: 14px;
            color: #666;
        }

        .register-link a {
            color: #2bc4f3;
            text-decoration: none;
            font-weight: 600;
        }

        .register-link a:hover {
            text-decoration: underline;
        }

        @media (max-width: 1024px) {
            .container {
                flex-direction: column;
                height: auto;
            }

            .left-section {
                flex: 0 0 200px;
            }

            .right-section {
                flex: 1;
                padding: 40px 30px;
            }

            .login-box {
                padding: 30px 20px;
            }
        }

         /* Auto-login overlay */
        .auto-login-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.95);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 20px;
        }

        .auto-login-overlay.show {
            display: flex;
        }

        .auto-login-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #f0f0f0;
            border-top: 4px solid #007bff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .auto-login-text {
            font-size: 16px;
            color: #333;
            font-weight: 500;
        }

        .alert {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .alert-error {
            background-color: #fee;
            border: 1px solid #fcc;
            color: #c33;
        }

        .alert-success {
            background-color: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
        }

        .alert-warning {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            color: #856404;
        }

        .alert::before {
            font-size: 20px;
        }

        .alert-error::before {
            content: '⚠';
        }

        .alert-success::before {
            content: '✓';
        }

        .alert-warning::before {
            content: 'ℹ';
        }

        /* Password toggle */
        .password-wrapper {
            position: relative;
        }

        .toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            user-select: none;
            font-size: 18px;
            opacity: 0.6;
            transition: opacity 0.2s;
        }

        .toggle-password:hover {
            opacity: 1;
        }

        .password-wrapper input {
            padding-right: 40px;
        }

        /* Loading spinner */
        .btn-login.loading {
            position: relative;
            color: transparent;
        }

        .btn-login.loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            top: 50%;
            left: 50%;
            margin-left: -8px;
            margin-top: -8px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spinner 0.6s linear infinite;
        }

        @keyframes spinner {
            to {
                transform: rotate(360deg);
            }
        }

        /* Input validation */
        .form-group input.invalid {
            border-color: #c33;
        }

        .form-group input.valid {
            border-color: #28a745;
        }

        .form-group .error-text {
            color: #c33;
            font-size: 12px;
            margin-top: 4px;
            display: none;
        }

        .form-group .error-text.show {
            display: block;
        }

        /* Attempts remaining */
        .attempts-warning {
            font-size: 12px;
            color: #856404;
            text-align: center;
            margin-top: 10px;
            display: none;
        }

        .attempts-warning.show {
            display: block;
        }

        /* Save Password Prompt */
        .save-prompt {
            display: none;
            background: #fff;
            border: 2px solid #007bff;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
            animation: slideDown 0.3s ease-out;
        }

        .save-prompt.show {
            display: block;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .save-prompt-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .save-prompt-icon {
            font-size: 24px;
        }

        .save-prompt-title {
            font-size: 15px;
            font-weight: 600;
            color: #333;
        }

        .save-prompt-content {
            margin-bottom: 12px;
            padding-left: 34px;
        }

        .saved-credential {
            background: #f8f9fa;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
        }

        .saved-credential strong {
            color: #333;
        }

        .save-prompt-actions {
            display: flex;
            gap: 8px;
            padding-left: 34px;
        }

        .btn-save {
            padding: 8px 16px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-save:hover {
            background: #0056b3;
        }

        .btn-never {
            padding: 8px 16px;
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
        }

        .btn-never:hover {
            background: #545b62;
        }

        .btn-not-now {
            padding: 8px 16px;
            background: transparent;
            color: #6c757d;
            border: none;
            font-size: 13px;
            cursor: pointer;
        }

        /* Saved indicator */
        .saved-indicator {
            display: none;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #d4edda;
            border: 1px solid #c3e6cb;
            border-radius: 6px;
            font-size: 13px;
            color: #155724;
            margin-bottom: 12px;
        }

        .saved-indicator.show {
            display: flex;
        }

        .btn-forget-saved {
            margin-left: auto;
            padding: 4px 12px;
            background: transparent;
            border: 1px solid #155724;
            border-radius: 4px;
            color: #155724;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-forget-saved:hover {
            background: #155724;
            color: white;
        }

        /* Toast Notification Styles */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
        }

        .toast {
            background: white;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            padding: 16px 20px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 300px;
            max-width: 400px;
            opacity: 0;
            transform: translateX(400px);
            animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
            position: relative;
            overflow: hidden;
        }

        .toast.hide {
            animation: slideOutRight 0.3s ease-out forwards;
        }

        @keyframes slideInRight {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideOutRight {
            to {
                opacity: 0;
                transform: translateX(400px);
            }
        }

        .toast-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .toast-success .toast-icon {
            background: #28a745;
        }

        .toast-error .toast-icon {
            background: #dc3545;
        }

        .toast-icon::before {
            color: white;
            font-size: 24px;
            font-weight: bold;
        }

        .toast-success .toast-icon::before {
            content: '✓';
        }

        .toast-error .toast-icon::before {
            content: '✕';
        }

        .toast-content {
            flex: 1;
        }

        .toast-title {
            font-size: 15px;
            font-weight: 600;
            color: #333;
            margin-bottom: 4px;
        }

        .toast-message {
            font-size: 13px;
            color: #666;
            line-height: 1.4;
        }

        .toast-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            width: 100%;
        }

        .toast-success .toast-progress {
            background: #28a745;
            animation: toastProgress 1.5s linear forwards;
        }

        .toast-error .toast-progress {
            background: #dc3545;
            animation: toastProgress 3s linear forwards;
        }

        @keyframes toastProgress {
            to { width: 0%; }
        }
