:root{
    --bg:#ffffff;
    --surface:#ffffff;
    --text:#111111;
    --muted:#6f6f6f;
    --border:#e7e7e7;
    --shadow:0 18px 60px rgba(0,0,0,.08);
    --accent:#111111;
    --accentText:#ffffff;
    --radius:30px;
    --transition:.28s ease;
    color-scheme:light;
}

html[data-theme="gray"]{
    --bg:#3f4146;
    --surface:#4c4e54;
    --text:#f4f1ea;
    --muted:#d0ccc4;
    --border:rgba(244,241,234,.18);
    --shadow:0 24px 76px rgba(0,0,0,.28);
    --accent:#f4f1ea;
    --accentText:#33353a;
    color-scheme:dark;
}

html[data-theme="midnight"]{
    --bg:#121315;
    --surface:#1a1c1f;
    --text:#f2f2f2;
    --muted:#a4a4a4;
    --border:#2d2f34;
    --shadow:0 25px 80px rgba(0,0,0,.45);
    --accent:#f2f2f2;
    --accentText:#111;
    color-scheme:dark;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Inter,sans-serif;
    background:var(--bg);
    color:var(--text);
    transition:.35s;
}

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

.topbar{
    height:74px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 48px;
}

.logo{
    display:inline-flex;
    align-items:center;
    gap:0;
    text-decoration:none;
    color:var(--text);
}
.logo img{width:38px;height:38px;object-fit:contain}
.logo strong{font-size:26px;line-height:1;font-weight:800;letter-spacing:-.09em}
html[data-theme="light"] .logo img{filter:invert(1)}

.topbar nav{
    display:flex;
    gap:22px;
}

.topbar nav a{
    text-decoration:none;
    color:var(--muted);
    font-size:14px;
}

.topbar nav a:hover{
    color:var(--text);
}

.login-container{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:60px 20px;
}

.login-card{
    width:100%;
    max-width:470px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:55px;
    box-shadow:var(--shadow);
}

.one-logo{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0;
    text-align:center;
    width:max-content;
    margin:0 auto 20px;
}
.one-logo img{width:86px;height:86px;object-fit:contain}
.one-logo strong{font-size:58px;line-height:1;font-weight:800;letter-spacing:-.09em}
html[data-theme="light"] .one-logo img{filter:invert(1)}

.login-card h1{
    text-align:center;
    font-size:34px;
    margin-bottom:12px;
    letter-spacing:-1.5px;
}

.login-card p{
    color:var(--muted);
    text-align:center;
    line-height:1.6;
}

form{
    margin-top:40px;
}

.field{
    display:flex;
    flex-direction:column;
    margin-bottom:24px;
}

.field label{
    margin-bottom:8px;
    font-size:14px;
    font-weight:600;
}

.field input{
    height:54px;
    border:1px solid var(--border);
    border-radius:16px;
    padding:0 18px;
    background:transparent;
    color:var(--text);
    font-size:15px;
}

.field input:focus{
    outline:none;
    border-color:#888;
}

.primary-button{
    width:100%;
    height:58px;
    border:none;
    border-radius:18px;
    background:var(--accent);
    color:var(--accentText);
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}

.primary-button:hover{
    transform:translateY(-2px);
}

.divider{
    margin:34px 0;
    text-align:center;
    color:var(--muted);
    font-size:14px;
}

.providers{
    margin-top:28px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.provider{
    height:52px;
    border-radius:16px;
    border:1px solid var(--border);
    background:transparent;
    cursor:pointer;
    color:var(--text);
    font-weight:600;
}

.provider:hover{
    background:rgba(127,127,127,.08);
}

.provider:focus-visible{
    outline:3px solid color-mix(in srgb,var(--text) 72%,transparent);
    outline-offset:3px;
}

.provider:disabled{
    cursor:not-allowed;
    opacity:1;
    color:var(--text);
    background:color-mix(in srgb,var(--surface) 82%,var(--text) 8%);
    -webkit-text-fill-color:var(--text);
}

.account-status{
    margin-bottom:14px;
    color:var(--muted);
    font-size:11px!important;
    font-weight:800;
    letter-spacing:.12em;
}

.account-actions{
    display:grid;
    gap:10px;
    margin-top:28px;
}

.account-actions .primary-button{
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    -webkit-text-fill-color:var(--accentText);
}

.request-link{
    min-height:48px;
    border:1px solid var(--border);
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 16px;
    text-align:center;
    text-decoration:none;
    color:var(--text);
    font-weight:700;
    -webkit-text-fill-color:var(--text);
}

.account-links{
    margin-top:26px;
    padding-top:22px;
    border-top:1px solid var(--border);
    display:grid;
    gap:10px;
}

.account-links a{
    color:var(--muted);
    font-size:13px;
    line-height:1.45;
    text-decoration:none;
    -webkit-text-fill-color:var(--muted);
}

.provider-status{
    min-height:42px;
    margin:14px 0 0;
    padding:10px 12px;
    border-radius:12px;
    background:color-mix(in srgb,var(--surface) 84%,var(--text) 6%);
    color:var(--muted)!important;
    font-size:12px;
    line-height:1.45!important;
}

.provider-status:empty{
    display:none;
}

.bottom-text{
    margin-top:32px;
    font-size:14px;
}

.bottom-text a{
    text-decoration:none;
    margin-left:6px;
    color:var(--text);
    font-weight:700;
}

@media(max-width:600px){

.topbar{
    padding:0 20px;
}

.login-card{
    padding:36px 24px;
}

.one-logo{
    transform:scale(.9);
    transform-origin:center;
}
.light-logo{filter:invert(1)}

.login-card h1{
    font-size:28px;
}

}
.email-auth-form{display:grid;gap:14px;margin-top:18px}.email-auth-form[hidden]{display:none}.email-auth-form label{display:grid;gap:7px;text-align:left}.email-auth-form input{width:100%;box-sizing:border-box;border:1px solid var(--border,#d8d8d8);border-radius:14px;padding:14px;background:transparent;color:inherit;font:inherit}.email-auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.email-auth-actions button{min-height:48px;border-radius:999px;border:1px solid var(--border,#d8d8d8);font:inherit}.email-auth-actions .primary-button{display:grid;place-items:center;border:0;cursor:pointer}.email-auth-form button:disabled{opacity:.55;cursor:wait}
