* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; display: grid; place-items: center;
    padding: 24px; background: #f7f8fc; color: #20212a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.auth-card {
    width: min(100%, 440px); padding: 36px; border: 1px solid #e7e9f0;
    border-radius: 22px; background: #fff; box-shadow: 0 18px 60px #27345b12;
}
.brand { display: inline-block; color: #4e5bd5; font-size: 20px; font-weight: 750; text-decoration: none; }
h1 { margin: 28px 0 8px; font-size: 27px; letter-spacing: -.6px; }
.subtitle, .switch { color: #707586; line-height: 1.5; }
.social-login { display: grid; gap: 10px; margin-top: 25px; }
.social-button {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 48px; padding: 11px 14px; border: 1px solid #dfe2e9;
    border-radius: 11px; background: #fff; color: #292b34;
    font: inherit; font-size: 14px; font-weight: 650; text-decoration: none;
    transition: background .15s, border-color .15s, transform .15s;
}
.social-button:hover { background: #f8f9fc; border-color: #b9bfce; transform: translateY(-1px); }
.google-mark { font-size: 19px; font-weight: 800; color: #4285f4; }
.github-mark { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: #9297a5; font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #e8eaf0; }
form { display: grid; gap: 10px; margin-top: 22px; }
label { margin-top: 8px; font-size: 14px; color: #454958; }
input {
    width: 100%; padding: 13px 14px; border: 1px solid #dfe2e9; border-radius: 10px;
    background: #fff; color: #20212a; font: inherit; outline: none;
}
input:focus { border-color: #858cf0; box-shadow: 0 0 0 3px #858cf022; }
form button {
    margin-top: 14px; padding: 13px; border: 0; border-radius: 10px;
    background: #5965df; color: white; font: inherit; font-weight: 650; cursor: pointer;
}
form button:hover { background: #4b57ce; }
.auth-error { margin-top: 18px; padding: 11px 13px; border-radius: 8px; background: #fff0f1; color: #a3293b; }
.switch { margin: 22px 0 10px; text-align: center; font-size: 14px; }
.switch a, .guest-link { color: #4e5bd5; }
.guest-link { display: block; text-align: center; margin-top: 18px; font-size: 14px; }
@media (max-width: 480px) { .auth-card { padding: 27px 22px; } }
