/* ── PRIME BEE Auth – Shared Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #f0f4ff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  color: #1e1e2f;
}

/* ── Card ── */
.auth-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(30, 30, 47, 0.10);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Logo ── */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #004ca3;
  letter-spacing: -0.3px;
}
.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fad02c;
  flex-shrink: 0;
}

/* ── Title block ── */
.title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
.card-title { font-size: 24px; font-weight: 600; color: #1e1e2f; }
.card-sub   { font-size: 14px; font-weight: 400; color: #71717a; }

/* ── Form group ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.field-label          { font-size: 13px; font-weight: 500; color: #1e1e2f; }
.field-label-semibold { font-size: 13px; font-weight: 600; color: #374151; }

.input-wrap {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1.5px solid #d4d4d8;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  gap: 8px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input-wrap:focus-within {
  border-color: #004ca3;
  box-shadow: 0 0 0 3px rgba(0, 76, 163, 0.10);
}
.input-wrap.input-gray {
  background: #F9FAFB;
  border-color: #D1D5DB;
}
.input-wrap.input-gray:focus-within {
  border-color: #004ca3;
  background: #fff;
}
.input-wrap.input-tall { height: 48px; }
.input-wrap.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.09);
}
.input-wrap.valid {
  border-color: #38a169;
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.09);
}
.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1e1e2f;
  background: transparent;
  min-width: 0;
}
.input-wrap input::placeholder { color: #a1a1aa; }

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #004ca3;
  flex-shrink: 0;
  padding: 0;
  transition: opacity 0.15s;
}
.toggle-btn:hover { opacity: 0.7; }
.toggle-btn:focus-visible {
  outline: 2px solid #004ca3;
  outline-offset: 2px;
  border-radius: 3px;
}

.field-error {
  display: none;
  font-size: 12px;
  color: #e53e3e;
  font-weight: 500;
  margin-top: 2px;
}
.field-error.visible { display: block; }

/* ── Primary button ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #fad02c;
  color: #004ca3;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.btn-primary:hover  { background: #f5c800; box-shadow: 0 6px 20px rgba(250, 208, 44, 0.35); }
.btn-primary:active { transform: scale(0.985); }
.btn-primary:focus-visible { outline: 3px solid #004ca3; outline-offset: 2px; }

/* ── Google button ── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: #fff;
  border: 1.5px solid #d4d4d8;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1e1e2f;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.btn-google:hover { background: #f9fafb; border-color: #a1a1aa; }
.g-icon { font-size: 16px; font-weight: 700; color: #ea4335; }

/* ── OR divider ── */
.or-divider { display: flex; align-items: center; gap: 12px; }
.or-line    { flex: 1; height: 1px; background: #e4e4e7; }
.or-text    { font-size: 12px; color: #a1a1aa; flex-shrink: 0; }

/* ── Link rows ── */
.link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
}
.link-muted   { color: #71717a; }
.link-primary {
  color: #004ca3;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.link-primary:hover { opacity: 0.75; text-decoration: underline; }
.link-medium {
  color: #004ca3;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}
.link-medium:hover { opacity: 0.75; text-decoration: underline; }
.link-medium:focus-visible { outline: 2px solid #004ca3; outline-offset: 2px; border-radius: 3px; }

/* ── Remember row ── */
.remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #71717a;
  cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #004ca3;
  cursor: pointer;
}

/* ── Dividers ── */
.card-hr { border: none; border-top: 1px solid #e5e7eb; }

/* ── Footer ── */
.footer-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: #a1a1aa;
}

/* ── Terms row ── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}
.terms-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 4px;
  accent-color: #004ca3;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Strength bar ── */
.strength-segs { display: flex; gap: 4px; }
.strength-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: background 0.2s;
}
.strength-seg.weak   { background: #e53e3e; }
.strength-seg.medium { background: #f59e0b; }
.strength-seg.strong { background: #38a169; }

.strength-text {
  font-size: 11px;
  font-weight: 500;
}
.strength-text.weak   { color: #e53e3e; }
.strength-text.medium { color: #f59e0b; }
.strength-text.strong { color: #38a169; }

/* ── Hint row ── */
.hint-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.hint-icon { color: #9ca3af; }

/* ── Responsive ── */
@media (max-width: 480px) {
  body { padding: 20px 12px; }
  .auth-card { padding: 28px 20px; }
  .card-title { font-size: 20px; }
}
