:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17211b;
    background: #f4f7f4;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #19653a; }

.site-header {
    min-height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #dce5de;
}
.brand { color: #174f31; font-size: 1.2rem; font-weight: 750; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 16px; }
.site-header form { margin: 0; }
.link-button { border: 0; padding: 0; background: transparent; color: #19653a; cursor: pointer; font: inherit; }

.messages { width: min(620px, calc(100% - 32px)); margin: 20px auto 0; }
.messages > div { padding: 12px 16px; border-radius: 10px; background: #e7f4eb; }

.auth-page, .page-card {
    width: min(620px, calc(100% - 32px));
    margin: 64px auto;
}
.auth-box, .page-card {
    padding: 32px;
    border: 1px solid #dce5de;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(24, 56, 35, 0.08);
}
.auth-heading { margin-bottom: 24px; }
.auth-heading h1 { margin: 0 0 8px; }
.auth-heading p { margin: 0; color: #5c6b61; }
.form-grid { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 6px; }
.auth-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c7d3ca;
    border-radius: 9px;
    font: inherit;
}
.auth-submit, .google-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 9px;
    background: #1d6a3d;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.social-auth-form { display: grid; }
.google-auth-button { width: 100%; background: #fff; color: #1d2a21; border: 1px solid #c7d3ca; }
.google-auth-mark { font-weight: 800; color: #4285f4; }
.auth-divider { display: flex; align-items: center; justify-content: center; margin: 18px 0; color: #708078; }
.auth-errors, .errorlist { color: #a22929; }
.auth-switch, .auth-note { margin: 20px 0 0; color: #5c6b61; }
.auth-help { color: #708078; font-size: 0.9rem; }
