/* ── Login page ───────────────────────────────────────────────────── */

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

body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Full-height centering */
.lv-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Card */
.lv-login__card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Brand block */
.lv-login__brand {
  text-align: center;
  margin-bottom: 2rem;
}

.lv-login__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.lv-login__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}

.lv-login__subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Error */
.lv-login__error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Form fields */
.lv-login__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.lv-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lv-login__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

.lv-login__input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lv-login__input::placeholder {
  color: #94a3b8;
}

.lv-login__input:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Password wrapper */
.lv-login__pw-wrap {
  position: relative;
}

.lv-login__pw-wrap .lv-login__input {
  padding-right: 2.8rem;
}

.lv-login__pw-toggle {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  line-height: 1;
}

.lv-login__pw-toggle:hover {
  color: #475569;
}

/* Remember me */
.lv-login__remember {
  margin-top: -0.2rem;
}

.lv-login__check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.lv-login__checkbox {
  width: 15px;
  height: 15px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
}

/* Wordmark */
.lv-login__wordmark {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.3px;
  color: #0f172a;
  margin: 0.5rem 0 0.1rem;
  line-height: 1;
}

.lv-login__wordmark strong {
  font-weight: 700;
  color: #E07A2F;
}

.lv-login__svg { display: block; margin: 0 auto; }

/* Footer link row */
.lv-login__footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* Inline text links */
.lv-login__link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.lv-login__link:hover { color: #1d4ed8; text-decoration: underline; }
.lv-login__link--bold { font-weight: 600; }

/* Remember row: flex to push "Forgot?" to right */
.lv-login__remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.2rem;
}

/* Hint text (forgot-password page) */
.lv-login__hint {
  font-size: 0.87rem;
  color: #475569;
  margin: -0.5rem 0 0.75rem;
  line-height: 1.5;
}

/* Optional label suffix */
.lv-login__optional { font-weight: 400; color: #94a3b8; }

/* Success banner */
.lv-login__success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.87rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.lv-login__success svg { flex-shrink: 0; margin-top: 1px; }

/* Wider card for register page */
.lv-login__card--wide { max-width: 440px; }

/* Submit button */
.lv-login__btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 0.3rem;
  letter-spacing: 0.01em;
}

.lv-login__btn:hover {
  opacity: 0.92;
}

.lv-login__btn:active {
  transform: scale(0.99);
}
