:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #153228;
  background: #f2f7f3;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #e6f5e9 0, transparent 36rem), #f4f7f3; }
a { color: inherit; }
button, input { font: inherit; }

.auth-shell { width: min(100% - 32px, 520px); margin: 0 auto; padding: 42px 0 56px; }
.brand { display: inline-flex; margin-bottom: 24px; text-decoration: none; font-size: 26px; font-weight: 500; letter-spacing: -1.2px; }
.brand b { color: #0c7251; }

.auth-card { background: rgba(255,255,255,.96); border: 1px solid #dce8df; border-radius: 28px; padding: 32px; box-shadow: 0 22px 70px rgba(24, 61, 45, .1); }
.eyebrow { margin: 0 0 8px; color: #0c7251; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 42px); line-height: 1.02; letter-spacing: -1.8px; }
.lead { margin: 16px 0 24px; color: #587166; line-height: 1.6; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: #eef4ef; margin-bottom: 18px; }
.tab { border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: #5b6d64; cursor: pointer; font-weight: 700; }
.tab.active { background: white; color: #143328; box-shadow: 0 2px 10px rgba(23, 54, 43, .08); }

.message { margin: 0 0 14px; border-radius: 12px; padding: 12px 14px; background: #fff0ee; color: #92362f; font-size: 14px; line-height: 1.45; }
.message[data-kind="info"] { background: #edf7f0; color: #276149; }

.google-button, .primary, .secondary { width: 100%; border-radius: 13px; min-height: 48px; cursor: pointer; font-weight: 800; }
.google-button { display: flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid #cfdad2; background: white; color: #203c31; }
.google-button:disabled { opacity: .45; cursor: not-allowed; }
.google-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #f2f4f4; color: #4285f4; font-weight: 900; }
.provider-note { margin: 9px 0 0; color: #7f6357; font-size: 13px; text-align: center; }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #819087; font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: #e1e9e3; }

.auth-form { display: grid; gap: 14px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 7px; color: #3a554a; font-size: 13px; font-weight: 800; }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] { width: 100%; border: 1px solid #ccd9d0; border-radius: 12px; background: #fbfdfb; padding: 13px 14px; color: #153228; outline: none; }
.auth-form input:focus { border-color: #0c7251; box-shadow: 0 0 0 3px rgba(12,114,81,.11); }
.remember-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; font-weight: 600 !important; }
.remember-row input { accent-color: #0c7251; }
.password-note { margin: -5px 0 0; color: #76887e; font-size: 12px; }

.primary { border: 0; background: #0c7251; color: white; padding: 0 18px; }
.primary:hover { background: #095d43; }
.secondary { margin-top: 10px; border: 1px solid #cbd9d0; background: white; color: #29463a; }
.link-button { display: flex; align-items: center; justify-content: center; margin-top: 24px; text-decoration: none; }

.legal { margin: 20px 0 0; color: #78877f; font-size: 12px; line-height: 1.55; }
.legal a { color: #0c7251; }
.back-link { margin: 18px 0 0; text-align: center; color: #5d7167; font-size: 14px; }
.back-link a { text-decoration: none; }

.profile-row { display: flex; align-items: center; gap: 14px; margin: 20px 0 8px; }
.profile-row img, .avatar-fallback { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: #dff0e4; color: #0c7251; font-size: 22px; font-weight: 900; }
.profile-row h1 { font-size: 28px; letter-spacing: -1px; }
.profile-row p { margin: 5px 0 0; color: #6b7d73; }
.inline-error { color: #92362f; font-size: 13px; }

@media (max-width: 560px) {
  .auth-shell { width: min(100% - 22px, 520px); padding-top: 24px; }
  .auth-card { padding: 24px 20px; border-radius: 22px; }
}
