/* Buff Social — integrated authentication screens */
:root {
    --bs-rose: #e11d48;
    --bs-deep: #c81c50;
    --bs-tint: #fff0f5;
    --bs-soft: #ffedf2;
    --bs-ink: #101828;
    --bs-muted: #667085;
    --bs-line: #eef0f4;
    --bs-white: #ffffff;
    --bs-ok: #067647;
    --bs-ok-bg: #ecfdf3;
    --bs-err: #b42318;
    --bs-err-bg: #fef3f2;
}

body.bt68-auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background:
        radial-gradient(1100px 520px at 12% -10%, #ffe4ee 0%, rgba(255, 228, 238, 0) 62%),
        radial-gradient(900px 480px at 92% 0%, #fff1f6 0%, rgba(255, 241, 246, 0) 58%),
        #fbfafc;
    color: var(--bs-ink);
    font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.bt68-auth-body *,
body.bt68-auth-body *::before,
body.bt68-auth-body *::after {
    box-sizing: border-box;
}

.bt68-auth {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin: auto 0;
}

.bt68-auth a {
    color: var(--bs-deep);
}

.bt68-auth .bt68-auth-btn--primary {
    color: #fff;
}

.bt68-auth .bt68-auth-btn--ghost {
    color: #344054;
}

.bt68-auth .bt68-auth-brand {
    color: var(--bs-ink);
}

.bt68-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: center;
    text-decoration: none;
    color: var(--bs-ink);
}

.bt68-auth-brand--logo {
    justify-content: center;
    gap: 0;
}

.bt68-auth-brandlogo {
    display: block;
    width: auto;
    height: 46px;
    max-width: 220px;
    object-fit: contain;
}

.bt68-auth-brandmark {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(140deg, #f43f6d, var(--bs-deep));
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 10px 22px rgba(225, 29, 72, 0.26);
}

.bt68-auth-brandtxt {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.bt68-auth-brandtxt strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bt68-auth-brandtxt strong span {
    color: var(--bs-rose);
}

.bt68-auth-brandtxt small {
    color: var(--bs-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.bt68-auth-card {
    background: var(--bs-white);
    border: 1px solid var(--bs-line);
    border-radius: 26px;
    padding: 30px 30px 24px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.09);
}

.bt68-auth-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--bs-tint);
    color: var(--bs-rose);
    margin-bottom: 16px;
}

.bt68-auth-icon svg {
    width: 26px;
    height: 26px;
}

.bt68-auth-card h1 {
    margin: 0 0 6px;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bt68-auth-desc {
    margin: 0 0 20px;
    color: var(--bs-muted);
    font-size: 14.5px;
}

.bt68-auth-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.bt68-auth-alert p {
    margin: 0;
}

.bt68-auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.bt68-auth-alert li + li {
    margin-top: 4px;
}

.bt68-auth-alert--error {
    background: var(--bs-err-bg);
    color: var(--bs-err);
    border: 1px solid #fecdca;
}

.bt68-auth-alert--ok {
    background: var(--bs-ok-bg);
    color: var(--bs-ok);
    border: 1px solid #abefc6;
}

.bt68-auth-alert--info {
    background: var(--bs-soft);
    color: var(--bs-deep);
    border: 1px solid #ffd6e3;
}

.bt68-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bt68-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bt68-auth-field > span:first-child {
    font-size: 13.5px;
    font-weight: 600;
    color: #344054;
}

.bt68-auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1.5px solid #dfe3ea;
    border-radius: 13px;
    background: #fff;
    color: var(--bs-ink);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bt68-auth-field input::placeholder {
    color: #98a2b3;
}

.bt68-auth-field input:focus {
    outline: none;
    border-color: var(--bs-rose);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16);
}

.bt68-auth-field small,
.bt68-auth-hint {
    color: var(--bs-muted);
    font-size: 12.5px;
}

.bt68-auth-captcha {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow-x: clip;
}

.bt68-auth-captcha .g-recaptcha {
    flex: none;
    transform: scale(var(--bt68-captcha-scale, 1));
    transform-origin: top center;
    margin-bottom: calc((var(--bt68-captcha-scale, 1) - 1) * 78px);
}

.bt68-auth-captcha-error {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-err);
    text-align: center;
}

.bt68-auth-pw {
    position: relative;
    display: block;
}

.bt68-auth-pw input {
    padding-right: 52px;
}

.bt68-auth-eye {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--bs-muted);
    cursor: pointer;
}

.bt68-auth-eye:hover {
    background: var(--bs-tint);
    color: var(--bs-rose);
}

.bt68-auth-eye:focus-visible {
    outline: 2px solid var(--bs-rose);
    outline-offset: 1px;
}

.bt68-auth-eye svg {
    width: 20px;
    height: 20px;
}

.bt68-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bt68-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 2px 0;
}

.bt68-auth-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    color: #344054;
    cursor: pointer;
    min-height: 44px;
    align-items: center;
}

.bt68-auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--bs-rose);
    flex: none;
}

.bt68-auth-check--block {
    align-items: flex-start;
    line-height: 1.5;
    min-height: 0;
}

.bt68-auth-check--block input {
    margin-top: 2px;
}

.bt68-auth-check a {
    font-weight: 600;
}

.bt68-auth-inline {
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.bt68-auth-inline:hover {
    text-decoration: underline;
}

.bt68-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 13px;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.bt68-auth-btn:focus-visible {
    outline: 2px solid var(--bs-deep);
    outline-offset: 2px;
}

.bt68-auth-btn--primary {
    background: linear-gradient(135deg, #f43f6d, var(--bs-deep));
    color: #fff;
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.24);
}

.bt68-auth-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(225, 29, 72, 0.3);
}

.bt68-auth-btn--ghost {
    background: #fff;
    border-color: #e4e7ec;
    color: #344054;
}

.bt68-auth-btn--ghost:hover {
    border-color: #f9b8ca;
    background: var(--bs-tint);
    color: var(--bs-deep);
}

.bt68-auth-submit {
    width: 100%;
    margin-top: 4px;
}

.bt68-auth-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--bs-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.bt68-auth-sep::before,
.bt68-auth-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eaecf0;
}

.bt68-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 1.5px solid #e4e7ec;
    border-radius: 13px;
    background: #fff;
    color: #344054;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.bt68-auth-google:hover {
    border-color: #d0d5dd;
    background: #f9fafb;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.07);
}

.bt68-auth-google:focus-visible {
    outline: 2px solid var(--bs-deep);
    outline-offset: 2px;
}

.bt68-auth-google-ico {
    width: 19px;
    height: 19px;
    flex: none;
}

.bt68-auth-alt {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--bs-muted);
}

.bt68-auth-alt a {
    font-weight: 700;
    text-decoration: none;
}

.bt68-auth-alt a:hover {
    text-decoration: underline;
}

.bt68-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.bt68-auth-actions .bt68-auth-btn {
    flex: 1 1 160px;
}

.bt68-auth-logged p {
    margin: 0 0 8px;
    color: #344054;
}

.bt68-auth-account {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--bs-muted);
}

.bt68-auth-account strong {
    color: var(--bs-ink);
}

.bt68-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    color: var(--bs-muted) !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.bt68-auth-back svg {
    width: 17px;
    height: 17px;
}

.bt68-auth-back:hover {
    color: var(--bs-deep) !important;
}

.bt68-auth-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--bs-muted);
    font-size: 12.5px;
}

.bt68-auth-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bt68-auth-trust svg {
    width: 16px;
    height: 16px;
    color: var(--bs-rose);
}

.bt68-auth-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 380px) {
    .bt68-auth-captcha {
        --bt68-captcha-scale: 0.9;
    }
}

@media (max-width: 340px) {
    .bt68-auth-captcha {
        --bt68-captcha-scale: 0.8;
    }
}

@media (max-width: 560px) {
    body.bt68-auth-body {
        padding: 18px 14px calc(20px + env(safe-area-inset-bottom));
    }

    .bt68-auth {
        gap: 14px;
    }

    .bt68-auth-card {
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .bt68-auth-card h1 {
        font-size: 24px;
    }

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

    .bt68-auth-brandmark {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt68-auth-btn,
    .bt68-auth-field input {
        transition: none;
    }

    .bt68-auth-btn--primary:hover {
        transform: none;
    }
}
