:root {
            --primary-blue: #0a4d68;
            --secondary-blue: #088395;
            --accent-green: #05bfdb;
            --light-blue: #c5f6fa;
            --dark-text: #2c3e50;
            --light-gray: #f8f9fa;
            --medium-gray: #e9ecef;
            --glass-bg: rgba(255, 255, 255, 0.1);
            --glass-border: rgba(255, 255, 255, 0.2);
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.8);
            --shadow-color: rgba(0, 0, 0, 0.2);
        }

        [data-theme="light"] {
            --glass-bg: rgba(255, 255, 255, 0.8);
            --glass-border: rgba(0, 0, 0, 0.1);
            --text-primary: #2c3e50;
            --text-secondary: #6c757d;
            --shadow-color: rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: url('/assets/img/bg_login.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(10, 77, 104, 0.7) 0%, rgba(8, 131, 149, 0.5) 100%);
            z-index: -1;
        }

        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 1000;
            transition: all 0.3s ease;
            color: var(--text-primary);
        }

        .theme-toggle:hover {
            transform: scale(1.1);
            background: var(--glass-border);
        }

        .wrapper {
            width: 90%;
            max-width: 420px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 2px solid var(--glass-border);
            box-shadow: 0 8px 32px var(--shadow-color);
            color: var(--text-primary);
            border-radius: 20px;
            padding: 40px;
            transition: all 0.3s ease;
            animation: fadeInUp 0.6s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .logo-container {
            text-align: center;
            margin-bottom: 30px;
        }

        .logo {
            max-width: 180px;
            height: auto;
            filter: brightness(0) invert(1);
            transition: transform 0.3s ease;
        }

        [data-theme="light"] .logo {
            filter: none;
        }

        .logo:hover {
            transform: scale(1.05);
        }

        .wrapper h1 {
            font-size: 32px;
            text-align: center;
            margin-bottom: 30px;
            font-weight: 600;
        }

        .input-box {
            position: relative;
            width: 100%;
            height: 50px;
            margin: 25px 0;
        }

        .input-box input {
            width: 100%;
            height: 100%;
            background: transparent;
            border: 2px solid var(--glass-border);
            border-radius: 40px;
            font-size: 16px;
            color: var(--text-primary);
            padding: 20px 45px 20px 20px;
            outline: none;
            transition: all 0.3s ease;
        }

        .input-box input::placeholder {
            color: var(--text-secondary);
        }

        .input-box input:focus {
            border-color: var(--accent-green);
            box-shadow: 0 0 0 3px rgba(5, 191, 219, 0.2);
        }

        .input-box i {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 20px;
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }

        .input-box input:focus + i {
            color: var(--accent-green);
        }

        .remember-forgot {
            display: flex;
            justify-content: space-between;
            font-size: 14.5px;
            margin: 15px 0 25px;
            align-items: center;
        }

        .remember-forgot label {
            display: flex;
            align-items: center;
            color: var(--text-primary);
        }

        .remember-forgot label input {
            accent-color: var(--accent-green);
            margin-right: 8px;
            width: 16px;
            height: 16px;
        }

        .remember-forgot a {
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .remember-forgot a:hover {
            text-decoration: underline;
            color: var(--accent-green);
        }

        .btn {
            width: 100%;
            height: 50px;
            border-radius: 40px;
            border: none;
            outline: none;
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            font-size: 16px;
            color: #fff;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:active {
            transform: translateY(-1px);
        }

        .alert-container {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2000;
            width: 90%;
            max-width: 400px;
        }

        .custom-alert {
            padding: 15px 20px;
            border-radius: 10px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            animation: slideDown 0.3s ease-out;
            backdrop-filter: blur(10px);
        }

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

        .alert-success {
            background: rgba(40, 167, 69, 0.8);
            color: white;
        }

        .alert-error {
            background: rgba(220, 53, 69, 0.8);
            color: white;
        }

        .alert-info {
            background: rgba(23, 162, 184, 0.8);
            color: white;
        }

        .alert-icon {
            margin-right: 10px;
            font-size: 20px;
        }

        /* Responsive adjustments */
        @media (max-width: 576px) {
            .wrapper {
                width: 95%;
                padding: 30px 20px;
            }

            .wrapper h1 {
                font-size: 28px;
            }

            .theme-toggle {
                width: 45px;
                height: 45px;
            }
        }

        @media (max-width: 400px) {
            .wrapper {
                padding: 25px 15px;
            }

            .wrapper h1 {
                font-size: 24px;
            }

            .input-box {
                height: 45px;
                margin: 20px 0;
            }

            .input-box input {
                padding: 15px 40px 15px 15px;
                font-size: 14px;
            }

            .btn {
                height: 45px;
                font-size: 15px;
            }
        }

        /* Loading spinner */
        .spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .btn.loading .btn-text {
            display: none;
        }

        .btn.loading .spinner {
            display: block;
        }