/* ============================================================
   RentEase auth pages (login / register / admin login)
   Split-screen: dark brand panel left, form right.
   ============================================================ */

:root {
  --re-accent: #10b981;
  --re-accent-dark: #0b9e6e;
  --re-dark: #0f172a;
  --re-dark2: #16223b;
  --re-text: #1e293b;
  --re-muted: #64748b;
  --re-border: #e5eaf1;
}

body.auth-admin {
  --re-accent: #6366f1;
  --re-accent-dark: #4f52d9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; }

body.auth-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--re-text);
  background: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.auth-split { display: flex; min-height: 100vh; }

/* ---- left brand panel ---- */
.auth-brand-panel {
  width: 44%;
  background: linear-gradient(160deg, var(--re-dark) 0%, var(--re-dark2) 100%);
  color: #fff;
  padding: 48px 54px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--re-accent) 25%, transparent), transparent 70%);
  bottom: -160px;
  right: -120px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}
.auth-logo i { color: var(--re-accent); font-size: 1.5rem; }
.auth-logo em { font-style: normal; color: var(--re-accent); }
.auth-logo .tag {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  background: var(--re-accent);
  color: var(--re-dark);
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 4px;
}

.auth-brand-panel .pitch { margin: auto 0; position: relative; z-index: 1; }
.auth-brand-panel .pitch h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.auth-brand-panel .pitch h2 em { font-style: normal; color: var(--re-accent); }
.auth-brand-panel .pitch p { color: #9fb0c8; font-size: .98rem; line-height: 1.65; max-width: 400px; }

.auth-brand-panel .points { list-style: none; margin-top: 28px; }
.auth-brand-panel .points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd7e6;
  font-size: .9rem;
  margin-bottom: 12px;
}
.auth-brand-panel .points li i {
  color: var(--re-accent);
  font-size: 1.05rem;
}

.auth-brand-panel .foot { color: #64748b; font-size: .78rem; position: relative; z-index: 1; }

/* ---- right form panel ---- */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 26px;
  background: #f8fafc;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 480px; }

.auth-card h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-card > p.sub { color: var(--re-muted); font-size: .92rem; margin-bottom: 26px; }

.auth-card .field { margin-bottom: 16px; }
.auth-card .field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--re-border);
  border-radius: 11px;
  padding: 12px 15px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--re-text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--re-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--re-accent) 15%, transparent);
}

.auth-btn {
  width: 100%;
  border: none;
  border-radius: 11px;
  background: var(--re-accent);
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  font-family: inherit;
  padding: 13px;
  cursor: pointer;
  margin-top: 8px;
  transition: all .15s ease;
}
.auth-btn:hover {
  background: var(--re-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px var(--re-accent);
}

.auth-alert {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .86rem;
  margin-bottom: 18px;
}
.auth-alert.error { background: #feecec; color: #b91c1c; border: 1px solid #fbc6c6; }
.auth-alert.ok { background: #e7f8f1; color: #0b7a57; border: 1px solid #b8ebd7; }

.auth-links { text-align: center; margin-top: 22px; font-size: .88rem; color: var(--re-muted); }
.auth-links a { color: var(--re-accent); font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-links .home { display: block; margin-top: 10px; color: var(--re-muted); font-weight: 500; }

/* ---- plan picker (register) ---- */
.plan-pick-label { font-size: .8rem; font-weight: 600; display: block; margin: 6px 0 10px; }
.plan-option {
  border: 1.5px solid var(--re-border);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  transition: all .15s ease;
}
.plan-option:hover { border-color: var(--re-accent); }
.plan-option input { accent-color: var(--re-accent); width: 17px; height: 17px; flex: none; }
.plan-option.selected {
  border-color: var(--re-accent);
  background: color-mix(in srgb, var(--re-accent) 6%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--re-accent) 12%, transparent);
}
.plan-option .p-name { font-weight: 700; color: var(--re-text); display: block; font-size: .92rem; }
.plan-option .p-sub { font-size: .76rem; color: var(--re-muted); }
.plan-option .p-price { margin-left: auto; font-weight: 800; color: var(--re-accent-dark); white-space: nowrap; font-size: .95rem; }

@media (max-width: 860px) {
  .auth-brand-panel { display: none; }
}
