/* RentSign — shared stylesheet for all inner pages */

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

:root {
  --bg:          oklch(98% 0.004 240);
  --ink:         oklch(15% 0.02 240);
  --ink-soft:    oklch(45% 0.02 240);
  --ink-muted:   oklch(65% 0.01 240);
  --accent:      oklch(48% 0.18 250);
  --accent-dark: oklch(40% 0.18 250);
  --accent-light:oklch(94% 0.06 250);
  --green:       oklch(55% 0.15 155);
  --green-light: oklch(94% 0.06 155);
  --red:         oklch(52% 0.2 25);
  --red-light:   oklch(95% 0.06 25);
  --border:      oklch(88% 0.01 240);
  --white:       oklch(99.5% 0.002 240);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1.5rem, 5vw, 4rem);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--accent); color: white; font-size: 0.88rem; font-weight: 600; padding: 0.55rem 1.3rem; border: none; border-radius: 6px; cursor: pointer; transition: opacity 0.2s; text-decoration: none; }
.nav-cta:hover { opacity: 0.88; }
.nav-user { display: flex; align-items: center; gap: 1rem; }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font-family: inherit; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; transition: opacity 0.2s, transform 0.15s; white-space: nowrap; }
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: white; font-size: 0.95rem; padding: 0.75rem 1.6rem; }
.btn-secondary { background: var(--accent-light); color: var(--accent); font-size: 0.9rem; padding: 0.7rem 1.4rem; }
.btn-ghost { background: transparent; color: var(--ink-soft); font-size: 0.9rem; padding: 0.7rem 1.2rem; border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: oklch(75% 0.01 240); }
.btn-danger { background: var(--red-light); color: var(--red); font-size: 0.88rem; padding: 0.6rem 1.2rem; }
.btn-sm { font-size: 0.82rem; padding: 0.45rem 0.9rem; border-radius: 6px; }
.btn-full { width: 100%; }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(48% 0.18 250 / 0.12); }
.form-input::placeholder { color: var(--ink-muted); }
.form-hint { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.8rem; color: var(--red); margin-top: 0.3rem; }

/* ─── Alerts ──────────────────────────────────────────────────────────────── */
.alert { padding: 0.85rem 1.1rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1.2rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.alert-error   { background: var(--red-light);   color: var(--red);   border: 1px solid oklch(52% 0.2 25 / 0.2); }
.alert-success { background: var(--green-light);  color: var(--green); border: 1px solid oklch(55% 0.15 155 / 0.2); }
.alert-info    { background: var(--accent-light); color: var(--accent); border: 1px solid oklch(48% 0.18 250 / 0.15); }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.card-sm { padding: 1rem 1.2rem; border-radius: 8px; }

/* ─── Auth pages layout ───────────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; background: var(--bg); }
.auth-box { width: 100%; max-width: 440px; }
.auth-logo { font-size: 1.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; text-decoration: none; display: block; margin-bottom: 2rem; text-align: center; }
.auth-logo span { color: var(--accent); }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 2rem; box-shadow: 0 4px 24px oklch(0% 0 0 / 0.05); }
.auth-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.auth-sub { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.8rem; }
.auth-footer { text-align: center; font-size: 0.84rem; color: var(--ink-muted); margin-top: 1.4rem; }
.auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* OTP input */
.otp-group { display: flex; gap: 0.6rem; justify-content: center; margin: 1rem 0; }
.otp-digit { width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; border: 1.5px solid var(--border); border-radius: 8px; background: var(--white); color: var(--ink); font-family: inherit; transition: border-color 0.2s; }
.otp-digit:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(48% 0.18 250 / 0.12); }

/* ─── Dashboard layout ────────────────────────────────────────────────────── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem clamp(1.2rem, 4vw, 3rem); }
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.page-sub { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.73rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.badge-draft   { background: oklch(93% 0.01 240); color: var(--ink-muted); }
.badge-pending { background: oklch(94% 0.08 75);  color: oklch(52% 0.15 75); }
.badge-signed  { background: var(--green-light);  color: var(--green); }
.badge-expired { background: var(--red-light);    color: var(--red); }

/* Agreement list */
.agreement-grid { display: grid; gap: 1rem; }
.agreement-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: box-shadow 0.2s; }
.agreement-card:hover { box-shadow: 0 2px 12px oklch(0% 0 0 / 0.07); }
.agreement-info { flex: 1; min-width: 0; }
.agreement-title { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agreement-meta { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.2rem; }
.agreement-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 1.5rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.empty-text { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 36ch; margin-left: auto; margin-right: auto; }

/* ─── Stats strip ─────────────────────────────────────────────────────────── */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.3rem; }
.stat-num { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.2rem; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer.site-footer { background: oklch(15% 0.02 240); padding: 1.5rem clamp(1.5rem, 5vw, 4rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 4rem; }
footer.site-footer .logo { color: var(--white); font-size: 1.1rem; }
footer.site-footer .logo span { color: oklch(65% 0.12 250); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: oklch(55% 0.01 240); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: oklch(80% 0.01 240); }
.footer-copy { font-size: 0.75rem; color: oklch(45% 0.01 240); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .auth-card { padding: 1.5rem; }
  .agreement-card { flex-direction: column; align-items: flex-start; }
  .agreement-actions { width: 100%; }
  .otp-digit { width: 42px; height: 50px; font-size: 1.2rem; }
}
