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

        body {
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #00c6fb 0%, #005bea 55%, #23d5c7 100%);
            padding: 24px;
        }

        .login-card {
            background: #fff;
            border-radius: 28px;
            box-shadow: 0 30px 80px rgba(0,0,0,0.18);
            display: flex;
            width: 100%;
            max-width: 860px;
            min-height: 460px;
            overflow: hidden;
        }

        .login-left {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px 36px;
            border-right: 1.5px solid #f0f0f0;
            position: relative;
        }

        .login-left .logo-img {
            width: 120px;
            height: 120px;
            object-fit: contain;
            border-radius: 20px;
            margin-bottom: 24px;
            filter: drop-shadow(0 8px 24px rgba(0,91,234,0.15));
        }

        .deco {
            position: absolute;
            border-radius: 6px;
            opacity: 0.7;
        }
        .deco-1 { width: 14px; height: 14px; background: #3b5bff; top: 22%; left: 16%; transform: rotate(20deg); }
        .deco-2 { width: 10px; height: 10px; background: #ff4d6d; bottom: 28%; right: 18%; transform: rotate(-10deg); }
        .deco-3 { width: 8px;  height: 8px;  background: #00d2c6; top: 60%; left: 12%; border-radius: 50%; }
        .deco-4 { width: 18px; height: 18px; background: #ffe066; bottom: 18%; left: 22%; transform: rotate(35deg); }

        .brand-title {
            font-size: 1rem;
            font-weight: 700;
            color: #1e293b;
            text-align: center;
            line-height: 1.3;
        }
        .brand-sub {
            font-size: 0.75rem;
            color: #64748b;
            margin-top: 4px;
            text-align: center;
        }

        .login-right {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 52px 44px;
        }

        .login-right h2 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 6px;
        }
        .login-right .subtitle {
            font-size: 0.82rem;
            color: #94a3b8;
            margin-bottom: 32px;
        }

        .alert-err {
            background: #fff1f2;
            border: 1px solid #fecdd3;
            color: #e11d48;
            font-size: 0.82rem;
            border-radius: 12px;
            padding: 10px 14px;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .alert-success {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            color: #16a34a;
            font-size: 0.82rem;
            border-radius: 12px;
            padding: 10px 14px;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .input-group-custom {
            position: relative;
            margin-bottom: 16px;
        }
        .input-group-custom .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #b0b8c1;
            font-size: 0.85rem;
            pointer-events: none;
        }
        .input-group-custom input {
            width: 100%;
            padding: 14px 16px 14px 40px;
            border: 1.5px solid #e2e8f0;
            border-radius: 50px;
            font-size: 0.9rem;
            color: #1e293b;
            background: #f8fafc;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        }
        .input-group-custom input::placeholder { color: #b0b8c1; }
        .input-group-custom input:focus {
            border-color: #5b5ef4;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(91,94,244,0.1);
        }

        .input-group-custom .toggle-pw {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #b0b8c1;
            font-size: 0.85rem;
            background: none;
            border: none;
            padding: 0;
        }
        .input-group-custom .toggle-pw:hover { color: #5b5ef4; }

        .forgot-row {
            text-align: right;
            margin-bottom: 24px;
            margin-top: -6px;
        }
        .forgot-row a {
            font-size: 0.8rem;
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.2s;
        }
        .forgot-row a:hover { color: #5b5ef4; }

        .btn-login {
            width: 100%;
            padding: 14px;
            background: linear-gradient(90deg, #5b5ef4 0%, #7c5cf4 100%);
            color: #fff;
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(91,94,244,0.35);
            transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
        }
        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(91,94,244,0.45);
        }
        .btn-login:active { transform: translateY(0); opacity: 0.9; }
        .btn-login:disabled { opacity: 0.7; cursor: not-allowed; }

        .login-bottom {
            text-align: center;
            margin-top: 24px;
            font-size: 0.82rem;
            color: #94a3b8;
        }
        .login-bottom a {
            color: #5b5ef4;
            font-weight: 600;
            text-decoration: none;
        }
        .login-bottom a:hover { text-decoration: underline; }

        @media (max-width: 640px) {
            .login-left { display: none; }
            .login-right { padding: 40px 28px; }
            .login-card { max-width: 420px; }
        }
