.aacgl-wrap {
    clear: both;
    margin: 18px 0;
    text-align: center;
}

.aacgl-separator {
    align-items: center;
    color: #777;
    display: flex;
    font-size: 13px;
    gap: 12px;
    margin: 0 0 12px;
    text-transform: uppercase;
}

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

.aacgl-button {
    align-items: center;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    box-sizing: border-box;
    color: #3c4043;
    display: flex;
    font-size: 15px;
    font-weight: 600;
    gap: 11px;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}

.aacgl-button:hover,
.aacgl-button:focus {
    background: #f8faff;
    border-color: #c5d4f7;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .18);
    color: #202124;
}

.aacgl-button:focus-visible {
    outline: 3px solid rgba(66, 133, 244, .25);
    outline-offset: 2px;
}

.aacgl-icon {
    flex: 0 0 18px;
    height: 18px;
    width: 18px;
}

.aacgl-checkout {
    background: #f8f9fa;
    border: 1px solid #e3e5e8;
    border-radius: 8px;
    margin: 0 0 24px;
    max-width: 520px;
    padding: 16px;
}

.aacgl-checkout > p {
    margin: 0 0 10px;
}

.aacgl-checkout .aacgl-wrap {
    margin-bottom: 0;
}

.aacgl-email-link {
    color: #1268d8;
    font-weight: 700;
}

/* Branded customer login page */
.aacgl-auth-shell {
    background: #f3f6fb;
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(10, 28, 58, .12);
    color: #142033;
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.8fr);
    margin: 24px auto 42px;
    max-width: 1120px;
    overflow: hidden;
}

.aacgl-brand-panel {
    background: linear-gradient(145deg, #08152f 0%, #0d3268 70%, #1268d8 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
    padding: 48px 38px;
    position: relative;
}

.aacgl-brand-panel::after {
    background: #e5232b;
    border-radius: 999px;
    content: "";
    height: 6px;
    margin-top: 28px;
    width: 72px;
}

.aacgl-brand-panel h1 {
    color: #fff !important;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    margin: 8px 0 18px;
}

.aacgl-brand-panel p {
    color: rgba(255, 255, 255, .84) !important;
    font-size: 16px;
    line-height: 1.65;
}

.aacgl-brand-panel .aacgl-eyebrow {
    color: #79b5ff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    margin: 20px 0 0;
}

.aacgl-brand-logo img {
    height: auto;
    max-height: 78px;
    max-width: 220px;
    width: auto;
}

.aacgl-brand-logo .custom-logo-link {
    display: inline-flex;
}

.aacgl-brand-name {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.aacgl-forms-panel {
    padding: 34px;
}

.aacgl-auth-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aacgl-auth-card {
    background: #fff;
    border: 1px solid #e2e7ef;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(20, 32, 51, .06);
    padding: 28px;
}

.aacgl-auth-card h2 {
    color: #101b2e !important;
    font-size: 25px;
    margin: 0 0 7px;
}

.aacgl-card-intro {
    color: #647084 !important;
    font-size: 14px;
    margin: 0 0 22px;
}

.aacgl-field {
    margin: 0 0 15px;
}

.aacgl-field label {
    color: #27344a !important;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
}

.aacgl-auth-shell .aacgl-field input[type="text"],
.aacgl-auth-shell .aacgl-field input[type="email"],
.aacgl-auth-shell .aacgl-field input[type="password"] {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    box-sizing: border-box;
    color: #111827 !important;
    font-size: 15px;
    min-height: 45px;
    padding: 10px 12px !important;
    width: 100%;
}

.aacgl-auth-shell .aacgl-field input:focus {
    border-color: #1976e9 !important;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .14) !important;
    outline: 0;
}

.aacgl-field small {
    color: #6b7280;
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

.aacgl-name-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aacgl-form-row {
    align-items: center;
    display: flex;
    font-size: 12px;
    gap: 12px;
    justify-content: space-between;
    margin: 2px 0 18px;
}

.aacgl-form-row a,
.aacgl-terms a,
.aacgl-text-link {
    color: #1268d8 !important;
    font-weight: 700;
}

.aacgl-check {
    align-items: flex-start;
    color: #4b5563 !important;
    display: flex;
    font-size: 12px;
    gap: 7px;
}

.aacgl-check input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.aacgl-terms {
    line-height: 1.5;
    margin: 2px 0 18px;
}

.aacgl-primary-button {
    align-items: center;
    background: #1268d8 !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-sizing: border-box;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px !important;
    text-decoration: none !important;
    width: 100%;
}

.aacgl-primary-button:hover,
.aacgl-primary-button:focus {
    background: #0d54b4 !important;
    color: #fff !important;
}

.aacgl-auth-card .aacgl-wrap {
    margin: 18px 0 0;
}

.aacgl-auth-card .aacgl-button {
    min-height: 46px;
}

.aacgl-notice {
    background: #fff1f1;
    border: 1px solid #f1b9b9;
    border-left: 4px solid #d92932;
    border-radius: 7px;
    color: #781b20;
    font-size: 14px;
    margin: 0 0 22px;
    padding: 12px 15px;
}

.aacgl-auth-logged-in {
    display: block;
    max-width: 520px;
    padding: 30px;
    text-align: center;
}

.aacgl-auth-logged-in .aacgl-brand-logo,
.aacgl-auth-logged-in .aacgl-brand-name {
    margin-bottom: 18px;
}

.aacgl-auth-logged-in .aacgl-brand-name {
    color: #142033;
}

.aacgl-auth-logged-in .aacgl-text-link {
    display: inline-block;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .aacgl-auth-shell {
        grid-template-columns: 1fr;
    }

    .aacgl-brand-panel {
        min-height: 0;
        padding: 32px;
    }

    .aacgl-auth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .aacgl-auth-shell {
        border-radius: 11px;
        margin: 10px 0 28px;
    }

    .aacgl-brand-panel,
    .aacgl-forms-panel,
    .aacgl-auth-card {
        padding: 22px;
    }

    .aacgl-name-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .aacgl-form-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
