/* Lofi Media — trang đăng nhập thành viên, cùng ngôn ngữ với Lịch làm việc */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --surface: #ffffff;
  --ink: #1b1b1d;
  --ink-2: #4b4b4f;
  --muted: #8c8c91;
  --line: #e4e0db;
  --pink: #e63b6f;
  --pink-dark: #cf2d5f;
  --pink-soft: #fde9ef;
  --pink-border: #f4c9d6;
  --red: #c63b3b;
  --red-soft: #fdecec;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(760px 520px at 50% -20%, #fde7ee 0, rgba(253, 231, 238, 0) 68%),
    radial-gradient(600px 480px at 100% 110%, #fbf1e3 0, rgba(251, 241, 227, 0) 62%),
    #fbfaf8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.auth-wrap { display: grid; gap: 14px; width: 100%; max-width: 420px; }

.auth-card {
  padding: 30px 30px 24px;
  border: 1px solid rgba(230, 59, 111, 0.1);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 70px -38px rgba(90, 40, 55, 0.5), 0 2px 6px rgba(90, 40, 55, 0.04);
  animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(150deg, #f45b86, #d92e62);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 8px 18px -10px rgba(230, 59, 111, 0.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 13px; letter-spacing: 0.17em; }
.brand-text small { color: var(--muted); font-size: 10.5px; }

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0 0 5px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.auth-sub { margin: 0 0 22px; color: var(--ink-2); font-size: 11.5px; }

.field { display: grid; gap: 6px; }
.field label { color: var(--ink-2); font-size: 10px; font-weight: 600; }
.pw-row { position: relative; }
.pw-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 62px 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.pw-row input::placeholder { color: #b3b0ac; font-size: 12px; }
.pw-row input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}
.toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}
.toggle:hover { background: #faf7f5; color: var(--ink-2); }

.caps, .error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 10.5px;
}
.caps { background: #fbf3e4; color: #8a5a1b; }
.caps svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.error { background: var(--red-soft); color: var(--red); }
.caps[hidden], .error[hidden] { display: none; }

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: 0 10px 22px -14px rgba(230, 59, 111, 0.9);
  transition: background 0.15s, transform 0.12s;
}
.submit:hover { background: var(--pink-dark); }
.submit:active { transform: scale(0.99); }
.submit:disabled { opacity: 0.6; cursor: progress; }
.submit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 10.5px;
}
.back svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--pink); text-decoration: none; }

.auth-foot { margin: 0; text-align: center; color: var(--muted); font-size: 10px; }
.auth-foot a { color: var(--ink-2); }

@media (max-width: 420px) {
  .auth-card { padding: 26px 22px 22px; border-radius: 18px; }
  h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
