        * {
            box-sizing: border-box;
        }

        html,
        body {
            min-height: 100%;
            margin: 0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                        Roboto, Helvetica, Arial, sans-serif;

            background:
                radial-gradient(circle at 10% 20%, rgba(255,255,255,.12), transparent 30%),
                radial-gradient(circle at 90% 80%, rgba(255,255,255,.10), transparent 30%),
                linear-gradient(135deg, #071a2f 0%, #0d3558 50%, #126b7a 100%);

            min-height: 100vh;

            display: flex;
            align-items: flex-start;
            justify-content: center;

            padding: 30px 15px;

            position: relative;
            overflow-x: hidden;
        }

        /* Decorative background */
        body::before {
            content: "";
            position: fixed;
            width: 420px;
            height: 420px;
            border-radius: 50%;
            background: rgba(255,255,255,.04);
            top: -180px;
            right: -120px;
        }

        body::after {
            content: "";
            position: fixed;
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: rgba(255,255,255,.035);
            bottom: -160px;
            left: -100px;
        }

        .login-wrapper {
            width: 100%;
            max-width: 430px;
            position: relative;
            z-index: 2;
        }

        @media (max-width: 480px) {
            body {
                padding: 20px 12px;
            }

            .login-wrapper {
                margin: 0;
            }
        }

        .login-card {
            background: rgba(255,255,255,.98);
            border-radius: 18px;
            padding: 38px 38px 32px;
            box-shadow:
                0 25px 70px rgba(0,0,0,.25),
                0 5px 20px rgba(0,0,0,.08);
        }

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

        .login-logo {
            width: 72px;
            height: 72px;
            margin: 0 auto 18px;
            border-radius: 16px;

            display: flex;
            align-items: center;
            justify-content: center;

            background: #f5f7fa;
            box-shadow: 0 5px 18px rgba(0,0,0,.08);
            overflow: hidden;
        }

        .login-logo img {
            max-width: 58px;
            max-height: 58px;
        }

        .login-title {
            margin: 0;
            color: #172b4d;
            font-size: 24px;
            font-weight: 700;
            line-height: 1.3;
        }

        .login-subtitle {
            margin: 8px 0 0;
            color: #7a869a;
            font-size: 14px;
        }

        /* Form */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: #344563;
            font-size: 13px;
            font-weight: 600;
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #8993a4;
            font-size: 16px;
            z-index: 2;
        }

        .form-control.custom-input {
            height: 48px;
            border: 1px solid #dfe3e8;
            border-radius: 9px;
            padding: 0 15px 0 44px;

            font-size: 14px;
            color: #172b4d;

            box-shadow: none;
            transition: all .2s ease;
        }

        .form-control.custom-input:focus {
            border-color: #168aad;
            box-shadow: 0 0 0 3px rgba(22,138,173,.10);
        }

        .form-control.custom-input::placeholder {
            color: #a5adba;
        }

        /* CAPTCHA */
        .captcha-wrapper {
            display: flex;
            gap: 10px;
            align-items: stretch;
        }

        .captcha-image {
            flex: 0 0 130px;
            min-height: 48px;

            border: 1px solid #dfe3e8;
            border-radius: 9px;

            display: flex;
            align-items: center;
            justify-content: center;

            background: #f7f9fb;
            overflow: hidden;
        }

        .captcha-image img {
            max-width: 100%;
            height: auto;
        }

        .captcha-input {
            flex: 1;
        }

        .captcha-input .form-control {
            height: 48px;
            border-radius: 9px;
            border: 1px solid #dfe3e8;
            box-shadow: none;
        }

        /* Error */
        .login-error {
            color: #d93025;
            font-size: 12px;
            margin-top: 7px;
            line-height: 1.5;
        }

        .login-error i {
            margin-right: 4px;
        }

        /* Separator */
        .separator {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 27px 0;
            color: #9aa5b1;
            font-size: 12px;
            font-weight: 500;
        }

        .separator::before,
        .separator::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #e6e9ed;
        }

        /* SSO button */
        .btn-sso {
            width: 100%;
            min-height: 52px;

            display: flex;
            align-items: center;
            justify-content: center;
            gap: 11px;

            border: 1px solid #1d1d1d;
            border-radius: 9px;

            background: #171717;
            color: #fff;

            font-size: 14px;
            font-weight: 700;

            text-decoration: none;
            transition: all .2s ease;
        }

        .btn-sso:hover,
        .btn-sso:focus {
            color: #fff;
            text-decoration: none;
            background: #000;
            transform: translateY(-1px);
            box-shadow: 0 7px 20px rgba(0,0,0,.18);
        }

        .btn-sso img {
            width: 30px;
            height: 30px;
            object-fit: contain;
        }

        .sso-description {
            text-align: center;
            color: #8993a4;
            font-size: 11px;
            margin-top: 10px;
            line-height: 1.5;
        }

        /* Footer */
        .login-footer {
            text-align: center;
            margin-top: 24px;
            color: rgba(255,255,255,.70);
            font-size: 11px;
        }

        /* Responsive */
        @media (max-width: 480px) {

            body {
                padding: 20px 12px;
            }

            .login-card {
                padding: 30px 22px 25px;
                border-radius: 15px;
            }

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

            .captcha-wrapper {
                flex-direction: column;
            }

            .captcha-image {
                flex: none;
                width: 100%;
                min-height: 55px;
            }
        }
        .password-input {
            padding-right: 48px !important;
        }

        .password-toggle {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);

            border: 0;
            background: transparent;

            color: #8993a4;
            font-size: 16px;

            padding: 5px;
            cursor: pointer;

            outline: none;
            z-index: 3;
        }

        .password-toggle:hover {
            color: #0d6e8a;
        }

        .password-toggle:focus {
            outline: none;
        }
        .btn-login.is-loading {
            cursor: not-allowed;
            opacity: .85;
        }

        .btn-login:disabled {
            cursor: not-allowed;
        }
