/* base.css — Resets, element defaults and the pre-login auth screen.
   Split from the original styles.css; rule order is preserved verbatim. */

* {
  box-sizing:border-box;
}

[hidden] {
  display:none!important;
}

.auth-screen {
  min-height:100vh;
  padding:28px clamp(20px,5vw,72px);
  background:radial-gradient(circle at 10% 10%,rgba(64,185,60,.2),transparent 30%),linear-gradient(135deg,#f7fbf8,#eaf7ed);
}

.auth-brand {
  display:flex;
  align-items:center;
  gap:12px;
}

.auth-brand img {
  width:56px;
  height:56px;
  object-fit:contain;
  background:#fff;
  border-radius:17px;
  padding:5px;
}

.auth-brand b,.auth-brand span {
  display:block;
}

.auth-brand b {
  font-size:18px;
}

.auth-brand span {
  color:var(--muted);
  font-size:13px;
  margin-top:3px;
}

.auth-layout {
  width:min(1180px,100%);
  margin:7vh auto 0;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:70px;
  align-items:center;
}

.auth-intro h1 {
  font-size:clamp(38px,5vw,64px);
  line-height:1.03;
  letter-spacing:-2px;
  margin:10px 0 20px;
  max-width:720px;
}

.auth-intro p {
  font-size:18px;
  line-height:1.7;
  color:var(--muted);
  max-width:650px;
}

.auth-card {
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:28px;
  padding:25px;
}

.auth-tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#edf6ef;
  border-radius:14px;
  padding:4px;
  margin-bottom:22px;
}

.auth-tabs button {
  border:0;
  background:transparent;
  padding:11px;
  border-radius:11px;
  font-weight:850;
  color:#587065;
}

.auth-tabs button.active {
  background:#fff;
  color:#176d36;
  box-shadow:0 5px 15px rgba(20,70,40,.1);
}

.auth-form {
  display:none;
}

.auth-form.active {
  display:block;
}

.auth-form h2 {
  margin:0 0 18px;
}

.auth-form .primary-btn {
  width:100%;
  margin-top:5px;
}

.auth-error {
  min-height:20px;
  color:var(--danger);
  font-size:13px;
  font-weight:700;
  margin:12px 0 0;
}

.current-user {
  font-size:13px;
  font-weight:800;
  color:#315343;
}

@media(max-width:860px) {
  .auth-layout {
    grid-template-columns:1fr;
    gap:25px;
    margin-top:35px;
  }
  .auth-intro h1 {
    font-size:38px;
  }
  .auth-intro p {
    font-size:15px;
  }
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color:var(--ink);
  background: radial-gradient(circle at 10% 0%, rgba(64,185,60,.16), transparent 28%), radial-gradient(circle at 100% 20%, rgba(47,174,74,.12), transparent 26%), linear-gradient(135deg,#f7fbf8 0%, #eef8f0 38%, #f9fbf7 100%);
  min-height:100vh;
}

button,input,select,textarea {
  font:inherit;
}

button {
  cursor:pointer;
}

a {
  color:inherit;
  text-decoration:none;
}

code {
  background:#edf7ef;
  border:1px solid #d6eadb;
  border-radius:8px;
  padding:2px 6px;
  color:#0b6b35;
}
