/* ═══════════════════════════════════════════════════════════
   VOX AI Dashboard — portal.css (login page)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.scal-page {
  --scal-accent: #c62828;
  --scal-ink: #111827;
  --scal-muted: #6b7280;
  --scal-border: #e5e7eb;
  --scal-bg: #f5f6f8;

  min-height: 100vh;
  background: var(--scal-bg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--scal-ink);
  padding: 40px 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scal-shell {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.scal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.scal-brand img { max-height: 40px; display: block; }
.scal-brand-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: var(--scal-ink);
}

.scal-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--scal-border);
  border-radius: 14px;
  padding: 36px 32px 28px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05), 0 10px 30px rgba(17, 24, 39, 0.04);
  box-sizing: border-box;
}

.scal-lead {
  margin: 0 0 4px;
  color: var(--scal-muted);
  font-size: 14px;
}
.scal-title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: var(--scal-ink);
  line-height: 1.2;
}

.scal-field {
  position: relative;
  display: block;
  margin-bottom: 14px;
}
.scal-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--scal-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--scal-ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  line-height: 1.3;
  appearance: none;
  -webkit-appearance: none;
}
.scal-field input::placeholder { color: #9ca3af; }
.scal-field input:focus {
  outline: none;
  border-color: var(--scal-accent);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
/* Kill the browser autofill yellow / blue tint */
.scal-field input:-webkit-autofill,
.scal-field input:-webkit-autofill:hover,
.scal-field input:-webkit-autofill:focus,
.scal-field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--scal-ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: var(--scal-ink);
}

/* Password field with eye toggle */
.scal-field-password input { padding-right: 44px; }
.scal-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
}
.scal-eye:hover { color: var(--scal-ink); background: #f3f4f6; }
.scal-eye:focus-visible {
  outline: none;
  color: var(--scal-ink);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}
.scal-eye .scal-eye-off { display: none; }
.scal-eye[aria-pressed="true"] .scal-eye-on { display: none; }
.scal-eye[aria-pressed="true"] .scal-eye-off { display: block; color: var(--scal-accent); }

.scal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
  font-size: 13px;
}
.scal-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--scal-ink);
  cursor: pointer;
  user-select: none;
}
.scal-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--scal-accent);
  margin: 0;
}
.scal-forgot {
  color: var(--scal-accent);
  text-decoration: underline;
  font-weight: 500;
}

.scal-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
  text-transform: none;
  letter-spacing: 0;
}
.scal-btn-primary {
  background: var(--scal-accent);
  color: #fff;
}
.scal-btn-primary:hover:not(:disabled) { filter: brightness(0.95); }
.scal-btn-primary:active:not(:disabled) { transform: translateY(1px); }
.scal-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.scal-google-btn {
  margin-top: 12px;
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.scal-message {
  margin-top: 14px;
  min-height: 20px;
  font-size: 13px;
  text-align: center;
}
.scal-message.is-error { color: #b91c1c; }
.scal-message.is-success { color: #065f46; }

.scal-foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--scal-muted);
}
.scal-foot a {
  color: var(--scal-accent);
  font-weight: 500;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .scal-page { padding: 24px 16px; }
  .scal-card { padding: 28px 22px 24px; }
  .scal-title { font-size: 24px; }
}
