/* ─────────────────────────────────────────────────────────
   PVTS Authentication Pages — Clean white + green theme
   Matches reference design: centered card, green accents
───────────────────────────────────────────────────────── */

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

:root {
  --green: #1e9e4b;
  --green-dark: #167a3a;
  --green-light: #e8f5ee;
  --text: #1a1a1a;
  --text-2: #444;
  --muted: #888;
  --border: #dce1e7;
  --bg: #eef0ec;
  /* very subtle green-grey page bg */
  --card-shadow: 0 4px 32px rgba(0, 0, 0, 0.10), 0 1px 6px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html,
body {
  height: 100%;
}

body.auth-pg {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Outer wrapper ──────────────────────────────────── */
.auth-bg {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(30, 158, 75, .08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(30, 158, 75, .06) 0%, transparent 60%),
    #eef0ec;
}

.auth-center {
  width: min(440px, 100%);
}

/* ── Card ───────────────────────────────────────────── */
.auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px 40px 28px;
  animation: authCardIn .4s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Logo ───────────────────────────────────────────── */
.auth-logo-wrap {
  text-align: center;
  margin-bottom: 18px;
}

.auth-logo {
  width: 172px;
  height: 172px;
  object-fit: contain;
  border-radius: 20%;
}

/* ── Label / Title / Subtitle ───────────────────────── */
.auth-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.auth-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 26px;
}

/* ── Flash messages ────────────────────────────────── */
.auth-msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.auth-msg--error,
.auth-msg--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-msg--success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-msg--warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.auth-msg--info {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* ── Form Fields ────────────────────────────────────── */
.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text);
  background: #f9fafb;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.auth-input-wrap input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.auth-input-wrap input:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 158, 75, .12);
}

/* Autofill override */
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #f9fafb inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* password eye toggle */
.auth-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1;
  padding: 0 2px;
  transition: color .15s;
}

.auth-eye-btn:hover {
  color: var(--green);
}

/* checkbox row */
.auth-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}

.auth-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}

.auth-check-row label {
  font-size: .875rem;
  color: var(--text-2);
  cursor: pointer;
}

/* ── Primary Button ─────────────────────────────────── */
.auth-btn {
  display: block;
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .12s;
  box-shadow: 0 3px 10px rgba(30, 158, 75, .25);
  text-align: center;
  letter-spacing: .01em;
}

.auth-btn:hover {
  background: var(--green-dark);
  box-shadow: 0 5px 14px rgba(30, 158, 75, .3);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
  background: #146832;
}

/* ── Links row ──────────────────────────────────────── */
.auth-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: .875rem;
  color: var(--muted);
}

.auth-links a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}

.auth-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.auth-links span {
  color: #d1d5db;
}

/* ── OTP input specific ─────────────────────────────── */
.auth-otp-input {
  text-align: center;
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  letter-spacing: .3em;
  padding: 14px 20px !important;
}

/* ── Divider line ───────────────────────────────────── */
.auth-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ── Info box (sent email etc.) ─────────────────────── */
.auth-info-box {
  background: var(--green-light);
  border: 1px solid #a7d7b8;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .9rem;
  color: #166534;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.auth-info-box .icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Card footer copyright ──────────────────────────── */
.auth-card-footer {
  text-align: center;
  color: #b0b8c1;
  font-size: .78rem;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px 22px;
    border-radius: 14px;
  }

  .auth-title {
    font-size: 1.35rem;
  }
}