/* ===== Agency Login Page ===== */
body.login-page {
    background: #0c1f3f !important;
    margin: 0;
    padding: 0;
}

.agency-login-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #0c1f3f 0%, #1565a8 100%);
    overflow-y: auto;
}

.agency-login-card {
    display: flex;
    width: 100%;
    max-width: 880px;
    min-height: 500px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

/* Left panel */
.agency-left {
    background: linear-gradient(170deg, #081529 0%, #0e3566 100%);
    width: 42%;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .agency-left::before {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        background: rgba(255,255,255,0.04);
        border-radius: 50%;
        top: -80px;
        right: -80px;
    }

    .agency-left::after {
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,0.04);
        border-radius: 50%;
        bottom: -60px;
        left: -60px;
    }

    .agency-left .brand-logo {
        width: 170px;
        height: auto;
        margin-bottom: 30px;
        filter: brightness(0) invert(1);
        position: relative;
        z-index: 1;
    }

    .agency-left h2 {
        font-size: 21px;
        font-weight: 700;
        margin: 0 0 10px;
        letter-spacing: 0.4px;
        position: relative;
        z-index: 1;
    }

    .agency-left .divider {
        width: 40px;
        height: 3px;
        background: rgba(255,255,255,0.35);
        border-radius: 2px;
        margin: 14px auto;
        position: relative;
        z-index: 1;
    }

    .agency-left p {
        font-size: 13.5px;
        opacity: 0.7;
        line-height: 1.7;
        max-width: 210px;
        margin: 0;
        position: relative;
        z-index: 1;
    }

/* Right panel */
.agency-right {
    background: #ffffff;
    flex: 1;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .agency-right .page-title {
        font-size: 26px;
        font-weight: 700;
        color: #0c1f3f;
        margin: 0 0 4px;
    }

    .agency-right .page-sub {
        font-size: 14px;
        color: #94a3b8;
        margin: 0 0 30px;
    }

    .agency-right .form-group {
        margin-bottom: 18px;
    }

    .agency-right label.field-label {
        font-size: 11.5px;
        font-weight: 700;
        color: #475569;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        margin-bottom: 7px;
        display: block;
    }

    .agency-right .form-control {
        height: 46px;
        border: 1.5px solid #e2e8f0;
        border-radius: 9px;
        padding: 0 14px;
        font-size: 14px;
        color: #1e293b;
        background: #f8fafc;
        transition: all 0.25s;
        width: 100%;
        box-sizing: border-box;
        box-shadow: none;
    }

        .agency-right .form-control:focus {
            border-color: #1565a8;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(21, 101, 168, 0.12);
            outline: none;
        }

.btn-agency-login {
    background: linear-gradient(135deg, #0c1f3f 0%, #1565a8 100%);
    color: #fff;
    border: none;
    height: 48px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 10px;
}

    .btn-agency-login:hover {
        opacity: 0.9;
        transform: translateY(-1px);
        color: #fff;
    }

    .btn-agency-login:active {
        transform: translateY(0);
    }

.agency-alert {
    border-radius: 8px;
    padding: 11px 15px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .agency-alert.error {
        background: #fff5f5;
        border: 1px solid #fed7d7;
        color: #c53030;
    }

    .agency-alert.success {
        background: #f0fff4;
        border: 1px solid #c6f6d5;
        color: #276749;
    }

.agency-right .text-danger {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

@media (max-width: 660px) {
    .agency-login-card {
        flex-direction: column;
    }

    .agency-left {
        width: 100%;
        padding: 32px 24px;
        min-height: auto;
    }

        .agency-left p {
            display: none;
        }

    .agency-right {
        padding: 32px 24px;
    }
}
