/* Split-panel login screen: brand panel + form panel. Shares the blue
   palette defined in whmcs-admin.css so login and the admin app feel
   like one system. */

:root {
    --whmcs-blue: #1a6d9e;
    --whmcs-blue-dark: #145a83;
    --whmcs-blue-darker: #0f4966;
}

body.whmcs-auth {
    margin: 0;
    min-height: 100vh;
    display: flex;
    background: #fff;
}

.whmcs-auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.whmcs-auth-brand {
    flex: 0 0 44%;
    max-width: 44%;
    background: linear-gradient(160deg, var(--whmcs-blue) 0%, var(--whmcs-blue-darker) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.whmcs-auth-brand::before {
    content: "";
    position: absolute;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    top: -8rem;
    right: -8rem;
}

.whmcs-auth-brand::after {
    content: "";
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    bottom: -6rem;
    left: -4rem;
}

.whmcs-auth-brand-inner {
    position: relative;
    z-index: 1;
}

.whmcs-auth-brand .whmcs-auth-icon {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    opacity: .95;
}

.whmcs-auth-brand h1 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.whmcs-auth-brand p {
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    max-width: 26rem;
    margin-bottom: 2.25rem;
}

.whmcs-auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.whmcs-auth-features li {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .92rem;
    color: rgba(255, 255, 255, .88);
    margin-bottom: .85rem;
}

.whmcs-auth-features i {
    font-size: 1.05rem;
    opacity: .9;
}

.whmcs-auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f7f9fb;
}

.whmcs-auth-card {
    width: 100%;
    max-width: 380px;
}

.whmcs-auth-card .whmcs-auth-mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--whmcs-blue);
    font-weight: 700;
    font-size: 1.3rem;
}

.whmcs-auth-card h4 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: .35rem;
}

.whmcs-auth-card p.whmcs-auth-subtitle {
    color: #8592a3;
    font-size: .9rem;
    margin-bottom: 1.75rem;
}

.whmcs-auth-card .input-group-text {
    background: #fff;
    border-right: 0;
    color: #8592a3;
}

.whmcs-auth-card .form-control {
    border-left: 0;
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.whmcs-auth-card .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.whmcs-auth-card .input-group:focus-within .input-group-text,
.whmcs-auth-card .input-group:focus-within .form-control {
    border-color: var(--whmcs-blue);
}

.whmcs-auth-card .btn-primary {
    background: var(--whmcs-blue);
    border-color: var(--whmcs-blue);
    padding: .6rem;
    font-weight: 600;
}

.whmcs-auth-card .btn-primary:hover,
.whmcs-auth-card .btn-primary:focus {
    background: var(--whmcs-blue-dark);
    border-color: var(--whmcs-blue-dark);
}

.whmcs-auth-footer {
    text-align: center;
    font-size: .78rem;
    color: #a0aec0;
    margin-top: 2rem;
}

.whmcs-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    color: #8592a3;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.whmcs-auth-back-link:hover {
    color: var(--whmcs-blue);
}

@media (max-width: 991.98px) {
    .whmcs-auth-brand {
        display: none;
    }

    .whmcs-auth-card .whmcs-auth-mobile-brand {
        display: block;
    }
}
