* {
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
        }

        body {
            min-height: 100vh;
            margin: 0;
            font-family: 'Nunito', sans-serif;
            background: linear-gradient(135deg, #eef4ff 0%, #dce9ff 50%, #f5f8ff 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px 15px;
        }

        .login-wrapper {
            width: 100%;
            max-width: 460px;
            margin: auto;
        }

        .login-card {
            width: 100%;
            background: #fff;
            border: none;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 45px rgba(38, 74, 130, 0.16);
        }

        .login-header {
            padding: 30px 25px 24px;
            text-align: center;
            color: #fff;
            background: linear-gradient(135deg, #78791f, #d6cd25);
        }

        .login-icon {
            width: 66px;
            height: 66px;
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 50%;
            font-size: 28px;
        }

        .login-header h1 {
            margin: 0;
            font-size: 23px;
            font-weight: 800;
            line-height: 1.4;
        }

        .login-header p {
            margin: 8px 0 0;
            font-size: 14px;
            opacity: 0.92;
        }

        .login-body {
            padding: 30px;
        }

        .welcome-text {
            margin-bottom: 24px;
            text-align: center;
        }

        .welcome-text h2 {
            margin-bottom: 6px;
            color: #263650;
            font-size: 21px;
            font-weight: 800;
        }

        .welcome-text p {
            margin: 0;
            color: #78859a;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #34435b;
            font-size: 14px;
            font-weight: 700;
        }

        .input-wrapper {
            position: relative;
        }

        .input-wrapper > i {
            position: absolute;
            top: 50%;
            left: 15px;
            transform: translateY(-50%);
            color: #7f91ad;
            pointer-events: none;
        }

        .login-input {
            width: 100%;
            height: 49px;
            padding: 12px 15px 12px 43px;
            border: 1px solid #dce4f0;
            border-radius: 10px;
            background: #f9fbff;
            color: #263650;
            font-size: 15px;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .login-input:focus {
            border-color: #4385f5;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(67, 133, 245, 0.13);
        }

        .login-input::placeholder {
            color: #9aa6b8;
        }

        .captcha-container {
            width: 100%;
            margin: 5px 0 22px;
            overflow-x: auto;
            overflow-y: hidden;
            display: flex;
            justify-content: center;
            -webkit-overflow-scrolling: touch;
        }

        .captcha-container .g-recaptcha {
            flex: 0 0 auto;
        }

        .login-btn {
            width: 100%;
            min-height: 50px;
            border: none;
            border-radius: 10px;
            background: linear-gradient(135deg, #78791f, #d6cd25);
            color: #fff;
            font-family: inherit;
            font-size: 16px;
            font-weight: 800;
            box-shadow: 0 6px 16px rgba(45, 100, 205, 0.22);
            transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
        }

        .login-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 9px 20px rgba(45, 100, 205, 0.3);
        }

        .login-btn:disabled {
            cursor: not-allowed;
            opacity: 0.7;
        }

        .spinner-area {
            min-height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 8px;
        }

        .back-portal-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            width: 100%;
            min-height: 46px;
            margin-top: 12px;
            padding: 11px 15px;
            border: 1px solid #dce5f3;
            border-radius: 10px;
            background: #f5f8ff;
            color: #315ca8;
            font-size: 14px;
            font-weight: 800;
            text-align: center;
            text-decoration: none;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }

        .back-portal-btn:hover {
            background: #e8efff;
            border-color: #bfd1f5;
            color: #20458c;
            text-decoration: none;
        }

        .login-divider {
            margin: 22px 0 0;
            border-top: 1px solid #edf0f6;
        }

        .login-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding: 18px 28px;
            background: #fbfcff;
            border-top: 1px solid #edf0f6;
        }

        .login-footer img {
            display: block;
            width: auto;
            max-width: 100%;
            height: 35px;
            object-fit: contain;
        }

        .footer-caption {
            margin-top: 12px;
            color: #929db0;
            font-size: 11px;
            text-align: center;
        }

        @media (max-width: 480px) {
            body {
                padding: 18px 12px;
                align-items: center;
            }

            .login-wrapper {
                max-width: 100%;
            }

            .login-card {
                border-radius: 15px;
            }

            .login-header {
                padding: 24px 18px 20px;
            }

            .login-icon {
                width: 56px;
                height: 56px;
                margin-bottom: 12px;
                font-size: 24px;
            }

            .login-header h1 {
                font-size: 19px;
            }

            .login-header p {
                font-size: 13px;
            }

            .login-body {
                padding: 24px 20px;
            }

            .welcome-text h2 {
                font-size: 19px;
            }

            .login-footer {
                padding: 16px 20px;
            }

            .login-footer img {
                height: 30px;
            }
        }

        @media (max-width: 350px) {
            .login-body {
                padding: 20px 14px;
            }

            .login-header h1 {
                font-size: 17px;
            }

            .login-footer {
                gap: 12px;
                padding: 14px;
            }

            .login-footer img {
                height: 26px;
            }
        }