/* ============================================================
   login.css — Airow Login / Sign-up Page
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #111827;
  background: #f0f4f8;
  -webkit-font-smoothing: antialiased;
}

/* ── Full-page layout ─────────────────────────────────────── */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, .07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, .06) 0%, transparent 55%),
    linear-gradient(160deg, #eef2f9 0%, #e8eef6 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── Brand header ─────────────────────────────────────────── */
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.login-brand-name {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.login-brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #2563eb;
  margin-top: 2px;
}

/* ── Card ─────────────────────────────────────────────────── */
.login-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  overflow: hidden;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e5e7eb;
}

.login-tab {
  padding: 14px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  transition: color .15s, background .15s;
  letter-spacing: .01em;
  position: relative;
}

.login-tab:first-child { border-right: 1px solid #e5e7eb; }

.login-tab.active {
  color: #2563eb;
  background: #ffffff;
}

.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: #2563eb;
  border-radius: 2px 2px 0 0;
}

.login-tab:hover:not(.active) {
  color: #374151;
  background: #f3f4f6;
}

/* ── Alert banner ─────────────────────────────────────────── */
.login-alert {
  margin: 16px 24px 0;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.login-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.login-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.login-alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── Forms ────────────────────────────────────────────────── */
.login-form {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  letter-spacing: .01em;
}

.field-hint {
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
}

.field-link {
  font-size: 12px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}
.field-link:hover { text-decoration: underline; }

/* Inputs */
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="password"] {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13.5px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}

.field-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.field-group input::placeholder { color: #9ca3af; }
.field-group input.input-error  { border-color: #dc2626; }

/* Password input with eye toggle */
.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 42px;
}

.input-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.input-eye svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  display: block;
}

.input-eye:hover { color: #6b7280; }

/* ── Guest notice ─────────────────────────────────────────── */
.guest-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 11px 13px;
}

.guest-notice svg {
  width: 16px;
  height: 16px;
  fill: #2563eb;
  flex-shrink: 0;
  margin-top: 1px;
}

.guest-notice p {
  font-size: 12.5px;
  color: #1d4ed8;
  line-height: 1.5;
}

.guest-notice strong { font-weight: 700; }

/* ── Submit button ────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .1s;
  letter-spacing: .01em;
  margin-top: 4px;
  font-family: inherit;
}

.btn-submit:hover:not(:disabled) { background: #1d4ed8; }
.btn-submit:active:not(:disabled) { transform: scale(.99); }
.btn-submit:disabled { opacity: .6; cursor: default; }

/* Spinner inside button */
.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer text ──────────────────────────────────────────── */
.login-footer {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* ── Divider ──────────────────────────────────────────────── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d1d5db;
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ── Success state ────────────────────────────────────────── */
.signup-success {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-icon {
  width: 52px;
  height: 52px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon svg { width: 26px; height: 26px; fill: #059669; }

.success-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.success-body {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
