@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --tb-peach-50: #fff3ee;
  --tb-peach-100: #ffe5db;
  --tb-peach-300: #f9b49a;
  --tb-peach-500: #ea8f6f;
  --tb-teal-700: #1d6f66;
  --tb-teal-600: #2a9d8f;
  --tb-teal-500: #33b5a6;
  --tb-ink: #123d3a;
  --tb-cream: #fffdfb;
  --tb-shadow: 0 18px 46px -22px rgba(18, 61, 58, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 12% 15%, var(--tb-peach-100), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(42, 157, 143, 0.2), transparent 25%),
    var(--tb-cream);
  color: var(--tb-ink);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

h1,
h2,
h3,
.brand-font {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.02em;
}

.tb-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.tb-auth-card {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--tb-shadow);
  border: 1px solid rgba(18, 61, 58, 0.08);
}

.tb-auth-visual {
  position: relative;
  padding: 3rem;
  color: #fff;
  background: linear-gradient(150deg, #1f7f77, #2a9d8f 55%, #39c2b0);
}

.tb-auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.35), transparent 32%),
    radial-gradient(circle at 90% 100%, rgba(249, 180, 154, 0.5), transparent 35%);
  pointer-events: none;
}

.tb-auth-copy {
  position: relative;
  z-index: 1;
}

.tb-auth-form {
  padding: 2.5rem;
  background: linear-gradient(180deg, #ffffff, #fff7f3);
}

.tb-sso-only {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tb-input {
  width: 100%;
  border: 1px solid rgba(18, 61, 58, 0.18);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  font-size: 0.98rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.tb-input:focus {
  outline: none;
  border-color: var(--tb-teal-600);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.14);
  transform: translateY(-1px);
}

.tb-btn {
  border: 0;
  width: 100%;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--tb-teal-700), var(--tb-teal-500));
  box-shadow: 0 14px 22px -16px rgba(42, 157, 143, 0.9);
  transition: transform 140ms ease, box-shadow 180ms ease, filter 140ms ease;
}

.tb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px -16px rgba(42, 157, 143, 0.95);
  filter: saturate(1.05);
}

.tb-btn:active {
  transform: translateY(0);
}

.tb-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.tb-link {
  color: var(--tb-teal-700);
  font-weight: 700;
  text-decoration: none;
}

.tb-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tb-action,
.tb-action:hover {
  text-decoration: none;
}

@media (max-width: 900px) {
  .tb-auth-card {
    grid-template-columns: 1fr;
  }

  .tb-auth-visual,
  .tb-auth-form {
    padding: 2rem;
  }
}


.tb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
}

.tb-modal-panel {
  max-height: 90vh;
  overflow: auto;
}
