/* Sign-in and change-password pages (plain HTML, no Blazor). Laklinike branding. */
:root {
  --ink: #1f1a14;
  --muted: #6f675b;
  --gold: #b48a2c;
  --gold-deep: #8f6b1e;
  --gold-soft: #e9dcc0;
  --ivory: #faf6ee;
  --line: #e6dfd1;
  --field: #fffdf9;
  --danger: #8f1d1d;
  --danger-bg: #fdf1f0;
  --ok: #1d5a32;
  --ok-bg: #eff8f1;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--ivory); -webkit-font-smoothing: antialiased; }

/* ---------- Sign-in: two panels ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  background:
    radial-gradient(1200px 600px at -10% 110%, rgba(180, 138, 44, .10), transparent 60%),
    radial-gradient(800px 500px at 110% -10%, rgba(180, 138, 44, .08), transparent 55%),
    var(--ivory);
  border-right: 1px solid var(--line);
}
.auth-brand::after {
  /* faint feather watermark */
  content: "";
  position: absolute;
  right: -120px;
  bottom: -60px;
  width: 560px;
  height: 260px;
  background: url("/img/laklinike-feather.png") no-repeat center / contain;
  opacity: .07;
  transform: rotate(-12deg);
  pointer-events: none;
}
.brand-top { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.brand-center { max-width: 460px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.brand-logo { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.brand-rule { width: 64px; height: 1px; background: var(--gold); margin: 32px auto 22px; opacity: .7; }
.brand-tagline { font-family: var(--serif); font-size: 26px; line-height: 1.3; margin: 0; font-weight: 500; }
.brand-tagline-ar { font-size: 16px; color: var(--muted); margin: 10px 0 0; }
.brand-foot { font-size: 12px; color: var(--muted); position: relative; z-index: 1; }

.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fff;
}
.form-wrap { width: 100%; max-width: 380px; }
.form-wrap .mobile-logo { display: none; }
.eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin: 0 0 14px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -.3px; }
p.intro { color: var(--muted); margin: 0 0 28px; line-height: 1.55; font-size: 15px; }
p.intro-ar { color: var(--muted); margin: -20px 0 28px; font-size: 14px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 8px; color: var(--ink); }
input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  background: var(--field);
  color: var(--ink);
  border: 1px solid #d9d0be;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover { border-color: #c8b993; }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(180, 138, 44, .16); }
button {
  width: 100%;
  margin-top: 28px;
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
button:hover { background: #3a3126; }
button:active { transform: translateY(1px); }
button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(180, 138, 44, .3); }

.login-error, .login-ok { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin: 0 0 6px; }
.login-error { color: var(--danger); background: var(--danger-bg); border: 1px solid #f3d3cf; }
.login-ok { color: var(--ok); background: var(--ok-bg); border: 1px solid #cfe8d6; }
.login-error ul { margin: 6px 0 0; padding-left: 18px; }

.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.secure-note svg { flex: none; color: var(--gold); }

/* ---------- Single card (change password) ---------- */
.login-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.login-card { width: 100%; max-width: 440px; background: #fff; padding: 40px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px rgba(60, 44, 14, .08); }
.card-logo { display: block; width: 180px; height: auto; margin: 0 auto 26px; }
.login-card h1 { font-size: 32px; }
.link-button { background: none; color: var(--gold-deep); margin-top: 0; padding: 8px; font-weight: 600; }
.link-button:hover { background: var(--ivory); }
.footer { font-size: 12.5px; color: var(--muted); margin-top: 22px; text-align: center; }
.footer a { color: var(--gold-deep); }

/* ---------- Small screens ---------- */
@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form { min-height: 100vh; padding: 40px 20px; background: var(--ivory); }
  .form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 24px; box-shadow: 0 18px 60px rgba(60, 44, 14, .08); }
  .form-wrap .mobile-logo { display: block; width: 170px; height: auto; margin: 0 auto 24px; }
  h1 { font-size: 32px; }
}
@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
}
.lang-link { float: inline-end; font-size: 13px; color: #9a7424; text-decoration: none; border: 1px solid #e6dfd1; border-radius: 8px; padding: 4px 10px; }
.lang-link:hover { background: #faf6ee; }
