/* login.css */
/* landing.css should load before this file */

body.auth-page {
  min-height: 100vh;
  margin: 0;
  color: var(--bridge-navy);
  background:
    radial-gradient(circle at 18% 18%, rgba(65, 220, 163, 0.22), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--bridge-teal-dark), var(--bridge-teal));
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-main {
  width: min(100% - 32px, 520px);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 42px 0 24px;
}

.auth-card {
  width: 100%;
  padding: 36px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(24, 184, 166, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(7, 28, 36, 0.22);
  backdrop-filter: blur(14px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--bridge-navy);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 1.35rem;
  margin-bottom: 32px;
}

.auth-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(24, 184, 166, 0.12);
  border: 1px solid rgba(24, 184, 166, 0.32);
}

.auth-logo-box img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
  transform: scale(1.1);
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card-header .eyebrow {
  margin: 0 0 10px;
  color: var(--bridge-teal-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card-header h1 {
  margin: 0;
  color: var(--bridge-navy);
  font-size: clamp(2.15rem, 8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.auth-card-header p {
  margin: 14px 0 0;
  color: var(--bridge-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label,
.label-row label {
  color: var(--bridge-navy);
  font-weight: 800;
  font-size: 0.94rem;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.small-link {
  color: var(--bridge-teal-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 800;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--bridge-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: #ffffff;
  color: var(--bridge-navy);
  font: inherit;
  font-weight: 650;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-group input::placeholder {
  color: rgba(95, 111, 126, 0.65);
  font-weight: 500;
}

.form-group input:focus {
  border-color: rgba(24, 184, 166, 0.72);
  box-shadow: 0 0 0 4px rgba(24, 184, 166, 0.14);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 78px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(24, 184, 166, 0.1);
  color: var(--bridge-teal-dark);
  cursor: pointer;
  font-weight: 850;
}

.password-toggle:hover {
  background: rgba(24, 184, 166, 0.16);
}

.field-error {
  min-height: 18px;
  margin: 0;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-message {
  display: none;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 700;
}

.auth-message.is-visible {
  display: block;
}

.auth-message.is-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.auth-message.is-success {
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}

.auth-message.is-info {
  color: var(--bridge-teal-dark);
  background: var(--bridge-soft);
  border: 1px solid rgba(24, 184, 166, 0.18);
}

.auth-submit {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--bridge-teal-dark), var(--bridge-teal));
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(8, 127, 117, 0.28);
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.auth-divider {
  margin: 28px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.auth-divider span {
  height: 1px;
  background: var(--bridge-border);
}

.auth-divider p {
  margin: 0;
  color: var(--bridge-muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.auth-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-secondary-card {
  min-height: 98px;
  border: 1px solid var(--bridge-border);
  border-radius: 20px;
  padding: 16px;
  background: #ffffff;
  text-decoration: none;
  display: grid;
  align-content: start;
  gap: 6px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.auth-secondary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 184, 166, 0.34);
  background: var(--bridge-soft);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.08);
}

.auth-secondary-card strong {
  color: var(--bridge-navy);
  font-size: 0.98rem;
}

.auth-secondary-card span {
  color: var(--bridge-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-disclaimer {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--bridge-border);
  color: var(--bridge-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.auth-footer {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 0.9rem;
}

.auth-footer p {
  margin: 0;
}

.auth-footer a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 750;
}

.auth-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 620px) {
  .auth-main {
    width: min(100% - 24px, 520px);
    min-height: auto;
    padding: 24px 0 18px;
  }

  .auth-card {
    padding: 26px 22px;
    border-radius: 26px;
  }

  .auth-brand {
    margin-bottom: 26px;
    font-size: 1.22rem;
  }

  .auth-logo-box {
    width: 39px;
    height: 39px;
    border-radius: 14px;
  }

  .auth-logo-box img {
    width: 39px;
    height: 39px;
  }

  .auth-secondary-actions {
    grid-template-columns: 1fr;
  }

  .auth-footer {
    width: min(100% - 24px, 520px);
  }
}