:root {
  --black:    #0d0d0d;
  --gray-800: #2c2c2c;
  --gray-600: #5c5c5c;
  --gray-400: #9c9c9c;
  --gray-200: #e4e4e4;
  --gray-100: #f5f5f5;
  --white:    #ffffff;
  --red:      #dc2626;
  --green:    #16a34a;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--gray-100);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── NAV ── */
.nav {
  padding: 0 clamp(1rem, 5vw, 2rem);
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--black);
  color: var(--white);
  border-radius: 5px;
  font-size: .78rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

/* ── AUTH CARD ── */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}

/* ── TABS ── */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.auth-tab {
  flex: 1;
  padding: .6rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-400);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}

.auth-tab--active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* ── FORM ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray-800);
}

.field__link {
  font-size: .75rem;
  font-weight: 400;
  color: var(--gray-400);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .12s;
}
.field__link:hover { color: var(--black); }

.field input {
  width: 100%;
  padding: .6rem .85rem;
  font-size: .9rem;
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder { color: var(--gray-400); }

.field input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(13,13,13,.07);
}

/* ── BTN ── */
.btn-primary {
  width: 100%;
  padding: .7rem;
  margin-top: .25rem;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-primary:hover    { opacity: .85; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* ── LEGAL ── */
.auth-legal {
  font-size: .72rem;
  color: var(--gray-400);
  line-height: 1.5;
  text-align: center;
}
.auth-legal a { text-decoration: underline; }

/* ── MSG ── */
.auth-msg {
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  margin-bottom: .5rem;
}

.auth-msg--error {
  background: #fff5f5;
  color: var(--red);
  border: 1px solid #fecaca;
}

.auth-msg--success {
  background: #f0fdf4;
  color: var(--green);
  border: 1px solid #bbf7d0;
}
