/* ============================================================
   BT Aqua — Authentication Pages CSS
   Login · Register · Forgot Password
   Two-column premium layout matching homepage design system
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #f0f9ff 0%, #ecfeff 50%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
}

/* ── Compact auth header ────────────────────────────────── */
.auth-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(15,23,42,.06);
  flex-shrink: 0;
}
.auth-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.auth-header-wave {
  width: 32px; height: 26px;
  flex-shrink: 0;
}
.auth-header-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1;
  color: #0f172a;
}
.auth-header-name span:first-child { color: #0284c7; }
.auth-header-name span:last-child  { color: #082f49; }
.auth-header-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 7px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  transition: all 180ms ease;
}
.auth-header-back:hover {
  color: #0284c7;
  border-color: #0ea5e9;
  background: #f0f9ff;
}
.auth-header-back i { font-size: .8rem; }

/* ── Main content area ──────────────────────────────────── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ── Two-column card ────────────────────────────────────── */
.auth-card {
  display: flex;
  width: 100%;
  max-width: 1080px;
  min-height: 580px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 60px -20px rgba(2,132,199,.18),
    0 8px 24px rgba(15,23,42,.08);
  animation: authCardIn 360ms cubic-bezier(.22,.61,.36,1) both;
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(16px) scale(.99); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ══ LEFT PANEL — aquarium image ══════════════════════════ */
.auth-panel-left {
  flex: 0 0 44%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #051420 0%, #0c3d5e 45%, #0e6b7c 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Background image */
.auth-panel-left-img {
  position: absolute;
  inset: 0;
  background-image: url('../img/heroimages/hero1.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.auth-card:hover .auth-panel-left-img { transform: scale(1.08); }

/* Dark gradient overlay */
.auth-panel-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(5,18,45,.45) 0%,
    rgba(5,18,45,.68) 60%,
    rgba(5,18,45,.88) 100%
  );
  z-index: 1;
}

/* Content over image */
.auth-panel-left-content {
  position: relative;
  z-index: 2;
  padding: 36px 36px 40px;
  color: #fff;
}

/* BT Aqua logo on panel */
.auth-panel-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-panel-logo-wave { width: 36px; height: 30px; }
.auth-panel-logo-text {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.028em;
  color: #fff;
}
.auth-panel-logo-text span:first-child { color: #67e8f9; }

/* Tagline chip */
.auth-panel-chip {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.auth-panel-headline {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -.03em;
}

.auth-panel-sub {
  font-size: .86rem;
  color: rgba(255,255,255,.68);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 280px;
}

/* Trust badges on panel */
.auth-panel-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-panel-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.auth-panel-badge i {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  flex-shrink: 0;
}
.auth-panel-badge i.blue   { background: rgba(14,165,233,.2);  color: #67e8f9; }
.auth-panel-badge i.green  { background: rgba(16,185,129,.2);  color: #6ee7b7; }
.auth-panel-badge i.purple { background: rgba(139,92,246,.2);  color: #c4b5fd; }

/* ══ RIGHT PANEL — form ════════════════════════════════════ */
.auth-panel-right {
  flex: 1;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

/* Form header */
.auth-form-eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.auth-form-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -.028em;
  line-height: 1.15;
}
.auth-form-sub {
  font-size: .88rem;
  color: #64748b;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Error / success alerts */
.auth-alert-error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .86rem;
  color: #dc2626;
}
.auth-alert-error ul { margin: 0; padding-left: 16px; }
.auth-alert-error ul li { margin-bottom: 2px; }
.auth-alert-success {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: .86rem;
  color: #15803d;
  line-height: 1.6;
}
.auth-alert-success strong { color: #14532d; }
.auth-alert-success a { color: #0284c7; }

/* ── Form fields ─────────────────────────────────────────── */
.auth-field {
  margin-bottom: 18px;
  position: relative;
}
.auth-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.auth-label a {
  font-size: .78rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  transition: color 160ms ease;
  margin-left: auto;
}
.auth-label a:hover { color: #0369a1; text-decoration: underline; }
.auth-label .req { color: #ef4444; font-size: .82rem; line-height: 1; }

/* Input wrapper with icon */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-icon {
  position: absolute;
  left: 15px;
  font-size: 1rem;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  transition: color 200ms ease;
}
.auth-input-wrap:focus-within .auth-input-icon { color: #0284c7; }

.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 42px;
  font-size: .92rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  -webkit-appearance: none;
}
.auth-input::placeholder { color: #94a3b8; font-weight: 400; }
.auth-input:hover { border-color: #cbd5e1; }
.auth-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3.5px rgba(2,132,199,.12);
  background: #fff;
}
/* no-icon variant */
.auth-input.no-icon { padding-left: 16px; }

/* Eye toggle button */
.auth-eye-btn {
  position: absolute;
  right: 13px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1rem;
  padding: 4px;
  border-radius: 6px;
  transition: color 160ms ease;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-eye-btn:hover { color: #0284c7; }

/* 2-column field grid for register */
.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.auth-field-row .auth-field { margin-bottom: 0; }

/* ── Checkbox (Remember me) ─────────────────────────────── */
.auth-check-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  cursor: pointer;
}
.auth-check-wrap input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: #0284c7;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
}
.auth-check-label {
  font-size: .84rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

/* ── Primary submit button ──────────────────────────────── */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: .96rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all 220ms cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 4px 14px rgba(2,132,199,.35), inset 0 -2px 0 rgba(0,0,0,.1);
  margin-bottom: 20px;
}
.auth-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #082f49 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2,132,199,.45), inset 0 -2px 0 rgba(0,0,0,.1);
  color: #fff;
}
.auth-btn:active { transform: translateY(0); }
.auth-btn i { font-size: .92rem; transition: transform 180ms ease; }
.auth-btn:hover i { transform: translateX(3px); }

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
  color: #94a3b8;
  font-size: .78rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ── Footer links below form ─────────────────────────────── */
.auth-switch {
  text-align: center;
  font-size: .86rem;
  color: #64748b;
  line-height: 1.6;
  margin-top: 4px;
}
.auth-switch a {
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  transition: color 160ms ease;
}
.auth-switch a:hover { color: #0369a1; text-decoration: underline; }

.auth-terms {
  text-align: center;
  font-size: .76rem;
  color: #94a3b8;
  margin-top: 12px;
  line-height: 1.6;
}
.auth-terms a { color: #64748b; text-decoration: underline; }
.auth-terms a:hover { color: #0284c7; }

/* ── Dev mode reset link ────────────────────────────────── */
.auth-dev-link {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .8rem;
  color: #92400e;
  margin-top: 12px;
  word-break: break-all;
  line-height: 1.5;
}
.auth-dev-link strong { display: block; margin-bottom: 4px; }
.auth-dev-link a { color: #0284c7; }

/* ── Compact auth footer ────────────────────────────────── */
.auth-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.auth-footer-copy {
  font-size: .76rem;
  color: #94a3b8;
}
.auth-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.auth-footer-links a {
  font-size: .76rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 160ms ease;
}
.auth-footer-links a:hover { color: #0284c7; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 1024px — shrink padding slightly */
@media (max-width: 1080px) {
  .auth-panel-right { padding: 40px 40px; }
  .auth-panel-left-content { padding: 30px 28px 32px; }
  .auth-panel-headline { font-size: 1.5rem; }
}

/* 900px — reduce left panel */
@media (max-width: 900px) {
  .auth-card { max-width: 820px; min-height: auto; }
  .auth-panel-left { flex: 0 0 40%; }
  .auth-panel-right { padding: 36px 36px; }
}

/* 768px — stack vertically, image becomes top banner */
@media (max-width: 768px) {
  .auth-main { padding: 20px 12px; align-items: flex-start; }
  .auth-card {
    flex-direction: column;
    max-width: 500px;
    border-radius: 18px;
    min-height: auto;
  }
  .auth-panel-left {
    flex: none;
    min-height: 180px;
    border-radius: 0;
  }
  .auth-panel-left-img { transform: scale(1); }
  .auth-panel-left-content { padding: 24px 24px 22px; }
  .auth-panel-logo { margin-bottom: 10px; }
  .auth-panel-logo-text { font-size: 1.3rem; }
  .auth-panel-chip { margin-bottom: 10px; font-size: .62rem; }
  .auth-panel-headline { font-size: 1.3rem; margin-bottom: 6px; }
  .auth-panel-sub { display: none; }
  .auth-panel-badges { display: none; }
  .auth-panel-right { padding: 28px 24px 32px; }
  .auth-form-title { font-size: 1.45rem; }
  .auth-field-row { grid-template-columns: 1fr; gap: 0; }
  .auth-field-row .auth-field { margin-bottom: 18px; }
}

/* 480px */
@media (max-width: 480px) {
  .auth-main { padding: 12px 10px; }
  .auth-card { border-radius: 14px; }
  .auth-panel-left { min-height: 150px; }
  .auth-panel-left-content { padding: 18px 18px 16px; }
  .auth-panel-headline { font-size: 1.15rem; }
  .auth-panel-right { padding: 22px 18px 24px; }
  .auth-form-title { font-size: 1.3rem; }
  .auth-input { height: 46px; font-size: .88rem; }
  .auth-btn { height: 48px; font-size: .9rem; }
}

/* 375px */
@media (max-width: 390px) {
  .auth-header { padding: 0 14px; }
  .auth-header-name { font-size: 1.15rem; }
  .auth-header-back { padding: 6px 10px; font-size: .78rem; }
  .auth-panel-right { padding: 18px 14px 22px; }
}


/* ============================================================
   GOOGLE SIGN-IN BUTTON
   Official Google branding guidelines:
   - White background
   - Google G SVG icon (not font icon)
   - Subtle border and shadow
   - Roboto or Inter font
   ============================================================ */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 52px;
  background: #fff;
  color: #3c4043;
  border: 1.5px solid #dadce0;
  border-radius: 11px;
  font-size: .94rem;
  font-weight: 600;
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 1px 4px rgba(60,64,67,.12), 0 1px 2px rgba(60,64,67,.06);
  margin-bottom: 18px;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}
.auth-google-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(66,133,244,.04);
  opacity: 0;
  transition: opacity 180ms ease;
}
.auth-google-btn:hover {
  border-color: #4285f4;
  box-shadow:
    0 2px 8px rgba(66,133,244,.18),
    0 1px 3px rgba(60,64,67,.08);
  color: #1a73e8;
  transform: translateY(-1px);
}
.auth-google-btn:hover::before { opacity: 1; }
.auth-google-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(60,64,67,.1);
}
.auth-google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── OR divider ─────────────────────────────────────────── */
.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.auth-or-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  display: block;
}
.auth-or-text {
  font-size: .75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .1em;
  white-space: nowrap;
  padding: 0 2px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ── Mobile adjustments ─────────────────────────────────── */
@media (max-width: 480px) {
  .auth-google-btn { height: 48px; font-size: .88rem; }
}
