body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text, #0f172a);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface, #ffffff);
    border-radius: 14px;
    box-shadow: var(--shadow, 0 10px 30px rgba(2, 6, 23, 0.08));
    padding: 28px;
}

.auth-header {
    text-align: left;
    margin-bottom: 16px;
}

.auth-header h1 {
    margin: 12px 0 6px 0;
    font-size: 28px;
}

.auth-header .subtext {
    margin: 0;
    color: var(--muted-text, #475569);
    font-size: 14px;
}

.auth-header .brand {
    height: 36px;
}

.input-group {
    margin: 12px 0;
}

.input-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    background-color: var(--surface, #fff);
}

.input-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 12px 2px;
    font-size: 14px;
    color: #0f172a;
}

.btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

.btn.primary {
    background-color: var(--primary, #0b66ff);
    color: #ffffff;
}

.btn.primary:hover {
    background-color: var(--primary-hover, #0956d6);
}

.btn.outline {
    background-color: var(--surface, #ffffff);
    color: var(--text, #0f172a);
    border-color: var(--border, #cbd5e1);
}

.btn.outline:hover {
    border-color: #94a3b8;
}

.btn.google .g-logo {
    font-weight: 700;
    color: #ea4335;
    font-family: Georgia, serif;
}

.divider {
    position: relative;
    text-align: center;
    color: #64748b;
    margin: 14px 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: #fff;
    padding: 0 8px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.footer-links a {
    color: var(--primary, #0b66ff);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}
/* ---- Material tokens for sign-in ---- */
:root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --muted-surface: #f2f6ff;
    --text: #0f172a;
    --muted-text: #475569;
    --primary: #0b66ff;
    --primary-hover: #0956d6;
    --accent: #7c3aed;
    --error: #d93025;
    --success: #16a34a;
    --border: #e6e8f0;
    --border-strong: #cbd5e1;
    --shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
    --radius-field: 12px;
}

/* Core md controls (subset for sign-in) */
.md-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.md-field > label { font-size: 12px; color: var(--muted-text); font-weight: 600; }
.md-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-field); background: var(--surface); color: var(--text); font-size: 15px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.md-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,102,255,.16); }

/* Floating label variant */
.md-field.floating > label { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); background: transparent; padding: 0 4px; color: var(--muted-text); pointer-events: none; transition: all .15s ease; }
.md-field.floating > .md-input { padding-top: 20px; padding-bottom: 8px; }
.md-field.floating > .md-input:focus + label,
.md-field.floating > .md-input:not(:placeholder-shown) + label { top: 6px; transform: none; font-size: 11px; background: var(--surface); }

/* Buttons */
.md-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 16px; background: var(--primary); color: #fff; transition: background-color .15s ease; }
.md-btn:hover { background: var(--primary-hover); }
.md-btn.outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.md-btn.outline:hover { background: var(--muted-surface); }

/* Checkbox */
.md-checkbox { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 12px 2px; font-size: 14px; color: var(--text); }
.md-checkbox input[type="checkbox"] { width: 18px; height: 18px; border: 1px solid var(--border-strong); border-radius: 4px; appearance: none; display: grid; place-items: center; background: #fff; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.md-checkbox input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(11,102,255,.16); border-color: var(--primary); }
.md-checkbox input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.md-checkbox input[type="checkbox"]:checked::after { content: ""; width: 10px; height: 10px; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="white" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') center / contain no-repeat; background: #fff; }