/* Login page — visual parity with extension's login_sidepanel.html.
   Loaded after navbar.css; the page does NOT include the site footer. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    color: #111;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── Layout ── */
.login-wrap {
    min-height: calc(100vh - 68px); /* leave room for the navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}
.login-card {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Brand ── */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
}
.brand-name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111;
}

.tagline {
    margin: 0 0 24px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    max-width: 300px;
}

/* ── Feature list ── */
.features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    width: 100%;
    max-width: 300px;
}
.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #111;
    padding: 6px 0;
    text-align: left;
}
.features li svg {
    flex-shrink: 0;
    color: #16a34a;
}

/* ── Custom Google button (visual parity with extension) ── */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.login-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.login-btn:active:not(:disabled) {
    background: #f3f4f6;
}
.login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.login-btn .g-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Status & terms ── */
#status {
    margin-top: 16px;
    font-size: 13px;
    min-height: 1.4em;
    color: #6b7280;
}
#status.success { color: #059669; font-weight: 600; }
#status.error   { color: #dc2626; font-weight: 600; }
#status.loading { color: #4f46e5; }

.terms {
    margin-top: 18px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    max-width: 300px;
}
.terms a {
    color: #6b7280;
    text-decoration: underline;
}
.terms a:hover { color: #111; }

/* ── Hidden Google-SDK button slot ── */
#google-btn-slot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    pointer-events: none;
    opacity: 0;
}
