/* ============================================================
   ReserveBZ — Login / Register / Reset
   Brand: dark #172126 + teal accent #27C7B8 (matches the logo)
   ============================================================ */

:root {
  --rz-dark: #172126;
  --rz-dark-2: #0f2f2b;
  --rz-teal: #27c7b8;
  --rz-teal-deep: #0d9488;
  --rz-teal-deep-hover: #0b8178;
  --rz-ink: #0f172a;
  --rz-muted: #64748b;
  --rz-border: #e4e9ee;
  --rz-field-bg: #f8fafb;
  --rz-light: #eef3f2;
}

* { box-sizing: border-box; }

@keyframes rzFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: rzFadeIn 0.3s ease; }
.hidden { display: none !important; }

.rz-login-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--rz-ink);
  background: var(--rz-dark);
}

.rz-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
}

/* ---------- Brand showcase (left) ---------- */
.rz-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 3rem 3.4rem;
  color: #eafbf8;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(39, 199, 184, 0.28), transparent 60%),
    linear-gradient(155deg, #123330 0%, var(--rz-dark) 58%, #0d161a 100%);
}

.rz-brand-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 199, 184, 0.22), transparent 68%);
  pointer-events: none;
}

.rz-brand-rings {
  position: absolute;
  right: -90px;
  top: 90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(39, 199, 184, 0.18);
  box-shadow:
    0 0 0 28px rgba(39, 199, 184, 0.05),
    0 0 0 70px rgba(39, 199, 184, 0.04);
  pointer-events: none;
}

.rz-brand-top { position: relative; z-index: 1; }

.rz-brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.rz-brand-copy {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 2rem;
}

.rz-brand-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.7rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.rz-brand-copy > p {
  margin: 1rem 0 2rem;
  max-width: 30rem;
  color: rgba(226, 245, 242, 0.78);
  font-size: 1.02rem;
  line-height: 1.6;
}

.rz-brand-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.rz-brand-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1rem;
  font-weight: 500;
  color: #eafbf8;
}

.rz-check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 199, 184, 0.16);
  border: 1px solid rgba(39, 199, 184, 0.4);
}

.rz-check svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--rz-teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rz-brand-foot {
  position: relative;
  z-index: 1;
  margin: 2.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(226, 245, 242, 0.5);
}

/* ---------- Auth pane (right) ---------- */
.rz-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--rz-light);
}

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

.rz-auth-mobilelogo {
  display: none;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.rz-auth-mobilelogo img {
  height: 46px;
  width: auto;
}

.rz-auth-head h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rz-ink);
}

.rz-auth-head p {
  margin: 0.45rem 0 1.4rem;
  color: var(--rz-muted);
  font-size: 0.96rem;
}

.rz-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  background: #e2e8e8;
  border-radius: 999px;
  padding: 0.3rem;
  margin-bottom: 1.25rem;
}

.rz-switch-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.66rem;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--rz-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.rz-switch-btn.is-active {
  background: #ffffff;
  color: var(--rz-teal-deep);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.18);
}

.rz-card {
  background: #ffffff;
  border: 1px solid var(--rz-border);
  border-radius: 22px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 24px 54px rgba(15, 33, 38, 0.1);
}

.rz-card-head { margin-bottom: 1.1rem; }
.rz-card-head h2 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.rz-card-head p { margin: 0.4rem 0 0; color: var(--rz-muted); font-size: 0.92rem; }

.rz-alert {
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b4213a;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
}

.rz-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rz-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.rz-input-wrap { position: relative; }

.rz-input-icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: #94a3b8;
}

.rz-input-icon svg,
.rz-eye svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rz-field input {
  width: 100%;
  border: 1.5px solid var(--rz-border);
  border-radius: 13px;
  padding: 0.85rem 0.95rem 0.85rem 2.6rem;
  background: var(--rz-field-bg);
  color: var(--rz-ink);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rz-field input::placeholder { color: #9aa7b2; }

.rz-field input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--rz-teal-deep);
  box-shadow: 0 0 0 4px rgba(39, 199, 184, 0.18);
}

.rz-eye {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.3rem;
  height: 1.3rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
}

.rz-eye:hover { color: var(--rz-teal-deep); }

.rz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: -0.2rem;
}

.rz-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #475569;
  cursor: pointer;
}

.rz-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--rz-teal-deep);
}

.rz-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rz-teal-deep);
  cursor: pointer;
}

.rz-link:hover { color: var(--rz-teal-deep-hover); text-decoration: underline; }

.rz-btn {
  border-radius: 13px;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
}

.rz-btn:active { transform: translateY(1px); }

.rz-btn-primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #17b3a4 0%, var(--rz-teal-deep) 100%);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.32);
}

.rz-btn-primary:hover {
  background: linear-gradient(135deg, #15a89a 0%, var(--rz-teal-deep-hover) 100%);
}

.rz-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.rz-btn-ghost {
  border: 1.5px solid var(--rz-border);
  background: #ffffff;
  color: #334155;
}

.rz-btn-ghost:hover { border-color: #cbd5e1; }

.rz-divider {
  position: relative;
  text-align: center;
  margin: 1.25rem 0 1rem;
}

.rz-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--rz-border);
}

.rz-divider span {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 0 0.7rem;
  color: #94a3b8;
  font-size: 0.82rem;
}

.rz-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.rz-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid var(--rz-border);
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  padding: 0.68rem 0.75rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.rz-social-btn:hover { border-color: #cbd5e1; background: #f8fafb; }
.rz-social-btn svg { width: 1.1rem; height: 1.1rem; }

.rz-reset-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.65rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .rz-shell { grid-template-columns: 1fr; }
  .rz-brand { display: none; }
  .rz-auth { background: linear-gradient(180deg, #172126 0%, #0f2f2b 42%, var(--rz-light) 42%); padding: 2rem 1.1rem; }
  .rz-auth-mobilelogo {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    padding: 0.55rem 1rem;
    width: fit-content;
    margin: 0 auto 1.4rem;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.3);
  }
  .rz-auth-head { text-align: center; }
  .rz-auth-head h1 { color: #ffffff; }
  .rz-auth-head p { color: rgba(226, 245, 242, 0.82); }
}

@media (max-width: 560px) {
  .rz-auth-head h1 { font-size: 1.65rem; }
  .rz-card { border-radius: 18px; padding: 1.3rem 1.1rem; }
  .rz-social { grid-template-columns: 1fr; }
  .rz-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
