:root {
  --teal: #1b6963;
  --teal-strong: #0f5a55;
  --text: #0f1b1a;
  --muted: #788a8a;
  --surface: #f7fbfa;
  --border: #e3ebea;
  --shadow: 0 24px 60px rgba(21, 54, 49, 0.15);
}

* {
  box-sizing: border-box;
}

body.auth {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8f7 100%);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}


.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 32px 28px 36px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 28px;
}

.brand {
  text-align: center;
  display: flex;
  justify-content: center;
}

.logo-image {
  width: clamp(90px, 8vw, 120px);
  max-height: 64px;
  height: auto;
  object-fit: contain;
  display: block;
}

.auth__content {
  display: grid;
  gap: 18px;
}

.auth__content h1 {
  margin: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}

.back-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.auth-mode-buttons {
  display: grid;
  gap: 12px;
}

.login-link-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px 12px;
  background: #f6fbfa;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.login-link-panel img {
  width: 72px;
  height: 72px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #f2f6f5;
  padding: 6px;
  border-radius: 14px;
  gap: 6px;
}

.tab {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 90, 85, 0.08);
}

.form {
  display: none;
  gap: 12px;
}

.form.is-active {
  display: grid;
}

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field:focus-within {
  border-color: var(--teal);
  box-shadow: 0 10px 30px rgba(27, 105, 99, 0.08);
}

.field__icon {
  font-size: 18px;
}

.field input {
  flex: 1;
  border: none;
  font-size: 15px;
  background: transparent;
  outline: none;
  color: var(--text);
}

.field input::placeholder {
  color: #a0b2b1;
}

.field select {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
  appearance: none;
}

.field--checkbox {
  align-items: flex-start;
  gap: 8px;
}

.field--checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
}


.field__hint {
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.field__error {
  margin: -4px 0 4px;
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
}

.form__messages {
  display: grid;
  gap: 8px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: #f2f6f5;
  color: var(--text);
  border: 1px solid var(--border);
}

.alert--success {
  background: #f0fbf7;
  border-color: #bfe6d8;
  color: #0f5a55;
}

.alert--error {
  background: #fff5f3;
  border-color: #f1c7bf;
  color: #a03a2d;
}

.form__footer {
  display: flex;
  justify-content: flex-end;
}

.link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.link:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 16px 35px rgba(27, 105, 99, 0.2);
}

.btn--primary:hover {
  background: var(--teal-strong);
  transform: translateY(-1px);
}

.separator {
  display: grid;
  place-items: center;
  color: #bdc7c6;
  font-size: 18px;
}

.separator .dot {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f2f6f5;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.btn--google {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(23, 37, 30, 0.08);
}

.btn--google:hover {
  transform: translateY(-1px);
}

.google-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 26px 20px 32px;
    border-radius: 22px;
  }

  .auth__content h1 {
    font-size: 24px;
  }

  .tab {
    font-size: 13px;
  }
}
