/* Sign-up and sign-in pages on the admin host. Uses the tokens from brand.css. */
.auth-page { min-height: 100vh; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-aside { background: var(--gb-ink); color: #F4EEF6; padding: 2.5rem clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 2.5rem; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 54, 107, 0.55), rgba(217, 54, 107, 0) 70%); pointer-events: none; }
.auth-aside h2 { font-family: var(--gb-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0; max-width: 18ch; }
.auth-aside p { color: #CFC3D6; margin: 0; max-width: 42ch; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.auth-points li { display: flex; gap: 0.75rem; align-items: flex-start; color: #E6DCEA; font-size: 0.95rem; }
.auth-points li::before { content: ""; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--gb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }

/* A small browser window showing the studio's own booking address as it is typed. */
.site-preview { margin-top: auto; background: #fff; color: var(--gb-ink); border-radius: var(--gb-radius); box-shadow: var(--gb-shadow-lg); overflow: hidden; max-width: 420px; position: relative; }
.site-preview-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.75rem; background: #F3EEF0; border-bottom: 1px solid var(--gb-line); }
.site-preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D9CFD3; }
.site-preview-url { margin-left: 0.5rem; flex: 1; background: #fff; border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.78rem; color: var(--gb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-preview-url b { color: var(--gb-ink); font-weight: 650; }
.site-preview-body { padding: 1rem 1.1rem 1.2rem; }
.site-preview-name { font-weight: 750; font-size: 1.05rem; margin-bottom: 0.6rem; }
.site-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--gb-line); font-size: 0.85rem; }
.site-preview-row small { display: block; color: var(--gb-muted); font-size: 0.75rem; }
.site-preview-row span.book { background: var(--gb-accent); color: #fff; border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.75rem; font-weight: 650; }

.auth-main { background: var(--gb-cream); padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 3rem; display: flex; flex-direction: column; }
.auth-top { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; font-size: 0.9rem; color: var(--gb-muted); }
.auth-top a { font-weight: 650; color: var(--gb-ink); }
.auth-card { width: 100%; max-width: 520px; margin: 2.5rem auto 0; }
.auth-card h1 { font-size: clamp(1.6rem, 2.5vw, 2rem); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.4rem; }
.auth-card .lead { color: var(--gb-muted); margin: 0 0 2rem; }

.auth-section { border: 0; padding: 0; margin: 0 0 1.75rem; }
.auth-section legend { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gb-muted); margin-bottom: 0.9rem; padding: 0; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { margin-bottom: 0.9rem; }
.auth-grid .field { margin-bottom: 0; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.field input[type=text], .field input[type=email], .field input[type=password] { width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--gb-line); border-radius: var(--gb-radius-sm); background: #fff; color: var(--gb-ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--gb-accent); box-shadow: 0 0 0 4px var(--gb-accent-soft); }
.field .hint { display: block; color: var(--gb-muted); font-size: 0.8rem; margin-top: 0.35rem; }
.field .field-error { display: block; color: var(--gb-bad); font-size: 0.82rem; margin-top: 0.35rem; }
.field input[aria-invalid=true] { border-color: var(--gb-bad); }

/* The studio address: the slug input joined to ".getbooking.now". */
.address { display: flex; align-items: stretch; border: 1px solid var(--gb-line); border-radius: var(--gb-radius-sm); background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.address:focus-within { border-color: var(--gb-accent); box-shadow: 0 0 0 4px var(--gb-accent-soft); }
.address.is-bad { border-color: var(--gb-bad); }
.address.is-ok { border-color: var(--gb-ok); }
.address input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; padding: 0.7rem 0 0.7rem 0.85rem !important; font: inherit; font-size: 1rem; text-align: right; background: transparent; }
.address input:focus { outline: none; }
.address .suffix { display: flex; align-items: center; padding: 0 0.85rem 0 0; color: var(--gb-muted); font-size: 1rem; white-space: nowrap; }
.address-status { display: flex; align-items: center; gap: 0.4rem; min-height: 1.4rem; font-size: 0.82rem; margin-top: 0.4rem; color: var(--gb-muted); }
.address-status.ok { color: var(--gb-ok); }
.address-status.bad { color: var(--gb-bad); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.plan { position: relative; display: block; border: 1.5px solid var(--gb-line); border-radius: var(--gb-radius); padding: 1.1rem 1.1rem 1rem; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--gb-accent); box-shadow: 0 0 0 4px var(--gb-accent-soft); }
.plan:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--gb-accent-soft); }
.plan-name { font-weight: 700; }
.plan-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.2rem 0 0.1rem; }
.plan-price small { font-size: 0.85rem; font-weight: 500; color: var(--gb-muted); }
.plan-note { font-size: 0.82rem; color: var(--gb-muted); margin: 0; }
.plans-hint { font-size: 0.82rem; color: var(--gb-muted); margin: 0.75rem 0 0; }

.auth-alert { background: #FDF0EF; border: 1px solid #F4C8C4; color: var(--gb-bad); border-radius: var(--gb-radius-sm); padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.92rem; }
.auth-foot { margin-top: 1.25rem; font-size: 0.85rem; color: var(--gb-muted); text-align: center; }
.auth-foot a { color: var(--gb-ink); font-weight: 600; }

@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-aside { padding: 1.25rem 1rem; gap: 1rem; }
    .auth-aside h2, .auth-aside p, .auth-points, .site-preview { display: none; }
    .auth-main { padding: 1.25rem 1rem 2.5rem; }
    .auth-card { margin-top: 1.25rem; }
}
@media (max-width: 520px) {
    .auth-grid, .plans { grid-template-columns: 1fr; }
}
.auth-forgot { display: inline-block; margin-top: 0.4rem; font-size: 0.85rem; }
.auth-note { margin-top: 1rem; font-size: 0.82rem; color: var(--gb-muted, #6B6275); }

/* Shared account pages (password reset, account set-up) use the studio-site class names. */
.auth-card .form-group { margin-bottom: 0.9rem; }
.auth-card .form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; }
.auth-card .form-group input { width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--gb-line); border-radius: var(--gb-radius-sm); background: #fff; color: var(--gb-ink); }
.auth-card .form-group input:focus { outline: none; border-color: var(--gb-accent); box-shadow: 0 0 0 4px var(--gb-accent-soft); }
.auth-card .btn { display: flex; width: 100%; align-items: center; justify-content: center; padding: 0.8rem 1.35rem; border-radius: 999px; border: 0; font: inherit; font-weight: 650; cursor: pointer; margin-top: 0.4rem; }
.auth-card .btn-primary { background: var(--gb-accent); color: #fff; box-shadow: 0 6px 18px rgba(217, 54, 107, 0.28); }
.auth-card .btn-primary:hover { background: var(--gb-accent-dark); }
.auth-card .alert { padding: 0.8rem 1rem; border-radius: var(--gb-radius-sm); margin-bottom: 1rem; font-size: 0.92rem; }
.auth-card .alert-success { background: #E8F5EE; color: var(--gb-ok); }
.auth-card .alert-error { background: #FDF0EF; color: var(--gb-bad); }
.auth-card .error { color: var(--gb-bad); font-size: 0.82rem; }
.auth-card form + p, .auth-card .alert + p { margin-top: 1.1rem; font-size: 0.92rem; }

/* Two-step sign-in */
.auth-inline-form { display: inline; margin: 0; }
.auth-link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--gb-ink); font-weight: 600; text-decoration: underline; cursor: pointer; }
.auth-card .auth-inline-form .auth-link-button { margin-top: 0.75rem; font-size: 0.9rem; }
.auth-other-ways { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--gb-line, #e6e1d8); }
.auth-other-ways h2 { font-size: 0.95rem; margin: 0 0 0.5rem; }
.auth-other-ways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.auth-other-ways a { color: var(--gb-ink); font-weight: 600; }
.auth-remember { display: flex; gap: 0.5rem; align-items: center; margin: 0 0 1rem; font-size: 0.9rem; color: var(--gb-muted); }
.auth-or { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.auth-or-line { display: flex; align-items: center; gap: 0.75rem; color: var(--gb-muted); font-size: 0.85rem; }
.auth-or-line::before, .auth-or-line::after { content: ""; flex: 1; border-top: 1px solid var(--gb-line); }

/* Google sign-in; after it, a passkey button needs no second "or". */
.auth-google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.auth-hint { margin: 0; color: var(--gb-muted); font-size: 0.8rem; text-align: center; }
.auth-or + .auth-or .auth-or-line { display: none; }
.auth-or + .auth-or { margin-top: 0.75rem; }
