/*
 * Login page restyle (client_login.pdt only). Scoped to body.login-v2, which the
 * login view adds itself, so the checkout and the rest of the client area keep the
 * old look from fb_style. Loaded after fb_style.min.css and only overrides.
 */
body.login-v2 {
    background: #F6F3EA;
    background-image:
        radial-gradient(circle at 20% 15%, #E4DECC 0 2px, transparent 3px),
        radial-gradient(circle at 80% 35%, #E4DECC 0 2px, transparent 3px),
        radial-gradient(circle at 30% 70%, #E4DECC 0 2px, transparent 3px),
        radial-gradient(circle at 75% 85%, #E4DECC 0 2px, transparent 3px);
    background-size: 160px 160px;
    color: #1F2328;
    min-height: 100vh;
}

/* header bar (structure.pdt .title) */
body.login-v2 .title {
    background: #FFFFFF;
    border-bottom: 1px solid #ECE8DD;
    height: 64px !important;
}
body.login-v2 .title .head-menu a {
    color: #1F2328;
}
body.login-v2 .title #head-menu li a {
    font-weight: 500;
}

/* the old 452px spacer above the card */
body.login-v2 .background-header {
    height: 0;
}

/* card */
body.login-v2 #form-container {
    width: calc(100% - 32px);
    max-width: 440px;
    min-height: 0;
    margin: 40px auto 0;
    padding: 28px 24px 24px;
    box-sizing: border-box;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(31, 35, 40, 0.10), 0 1px 2px rgba(31, 35, 40, 0.06);
}
@media (min-width: 688px) {
    body.login-v2 #form-container {
        width: 440px;
        margin-top: 56px;
        padding: 36px 40px 32px;
        border-radius: 28px;
        box-shadow: 0 20px 60px rgba(31, 35, 40, 0.12), 0 1px 2px rgba(31, 35, 40, 0.06);
    }
}

/* avatar 140 -> 76 px, badge and animation scaled with it */
body.login-v2 #avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto;
}
body.login-v2 #avatar-img {
    width: 76px;
    height: 76px;
    background: #EEF1F4;
}
body.login-v2 lottie-player {
    width: 42px;
    height: 42px;
    top: 46px;
    left: 41px;
}
body.login-v2 .wa_logo {
    width: 28px;
    height: 28px;
    top: 52px;
    left: 54px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: #FFFFFF;
    box-sizing: content-box;
}

/* title, number chip, subtitle */
body.login-v2 #appeal {
    margin: 18px auto 0;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1F2328;
}
body.login-v2 #number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: #EAF9F0;
    color: #15803D;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}
body.login-v2 #number::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25D366;
    flex: 0 0 auto;
}
body.login-v2 #number.is-empty {
    display: none;
}
body.login-v2 #number-wrap {
    text-align: center;
}
body.login-v2 #subtitle {
    margin: 6px auto 0;
    max-width: 320px;
    text-align: center;
    font-size: 15px;
    line-height: 22px;
    color: #6B7280;
}
body.login-v2 #hint {
    font-size: 15px;
    line-height: 22px;
    color: #6B7280;
}

/* buttons block */
body.login-v2 #auth-container {
    margin: 20px 0 0;
    padding: 0;
}
body.login-v2 #gsi-container {
    padding: 0 !important;
}
body.login-v2 #gsi-container > div {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
}
body.login-v2 .gsi-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: #9CA3AF;
    font-size: 13px;
    line-height: 18px;
}
body.login-v2 .gsi-divider::before,
body.login-v2 .gsi-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}
body.login-v2 #gsi-email {
    padding: 0 !important;
}
body.login-v2 #gsi-email-btn {
    height: 52px;
    max-height: 52px;
    max-width: 400px;
    border: 1.5px solid #D1D5DB;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: none;
    color: #1F2328;
    font: 600 16px 'Work Sans', system-ui, sans-serif;
    text-transform: none;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}
body.login-v2 #gsi-email-btn:hover {
    border-color: #9CA3AF;
    background: #FAFAFA;
}
body.login-v2 #gsi-email-btn .firebaseui-idp-icon-wrapper {
    background: none;
    padding: 0;
    display: flex;
}
body.login-v2 #gsi-email-btn .firebaseui-idp-text {
    width: auto;
    padding: 0;
    color: #1F2328;
    font: inherit;
}
body.login-v2 #gsi-trust {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    color: #6B7280;
}

/* FirebaseUI email form, when opened */
body.login-v2 #firebaseui-container .firebaseui-container {
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Work Sans', system-ui, sans-serif;
}
body.login-v2 #form-container .firebaseui-card-content form button {
    border-radius: 999px;
    height: 48px;
    max-height: 48px;
}

/* footer (structure.pdt .f-footer) */
body.login-v2 .f-footer {
    background: transparent;
}
body.login-v2 .f-footer .foot-links a {
    color: #6B7280;
    font-size: 12px;
}
body.login-v2 .f-footer .foot-cr {
    color: #9CA3AF;
    font-size: 12px;
}
