:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --slate-900: #0f172a;
    --slate-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --danger: #ef4444;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #e0e7ff, #f8fafc 45%);
    color: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
main {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    padding: 32px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}
.login-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.login-card h1 {
    margin: 0;
    font-size: 1.9rem;
}
.login-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.5;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img {
    width: 48px;
    height: 48px;
}
.status {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid transparent;
}
.status.info {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--blue-dark);
}
.status.warning {
    background: rgba(250, 204, 21, 0.15);
    border-color: rgba(250, 204, 21, 0.4);
    color: #92400e;
}
.status.error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--danger);
}
.google-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    align-items: stretch;
}

/*
  Google Identity Services renders a button with internal markup/iframes and
  injected styles. If those styles are blocked or overridden, the logo can
  balloon and cover the click target. These rules keep the container sane.
*/
#googleSignInButton {
    display: flex;
    justify-content: center;
}

#googleSignInButton > div,
#googleSignInButton iframe {
    max-width: 360px;
    width: 100% !important;
}

/* Keep any SVG/logo inside the Google button from expanding unexpectedly. */
#googleSignInButton svg {
    width: auto;
    height: auto;
}
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--slate-900);
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.secondary-button:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.secondary-button:active {
    transform: translateY(0);
}
.secondary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.faq-card h2 {
    margin: 0 0 16px;
}
details {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--slate-100);
}
summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
details[open] {
    background: white;
}
details p {
    margin: 8px 0 0;
    color: var(--gray-600);
    line-height: 1.5;
}
.version-note {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 8px;
}
.demo-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.85rem;
    margin: 4px 0;
}
.demo-divider::before,
.demo-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}
.demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.demo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}
.demo-button:active {
    transform: translateY(0);
}
.demo-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.help-link {
    color: var(--blue-dark);
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 640px) {
    body { padding: 12px; }
    main { gap: 20px; }
}
