/* Jonathan's Car Care Center — automotive login */
:root {
  --login-ink: #0a1628;
  --login-muted: #5b6b7c;
  --login-line: #d8dee6;
  --login-surface: #ffffff;
  --login-panel: #f4f6f8;
  --login-accent: #c8102e;
  --login-accent-2: #9b0c22;
  --login-navy: #0b1f3a;
  --login-steel: #1c2e45;
  --login-accent-soft: rgba(200, 16, 46, 0.12);
  --login-danger: #b91c1c;
  --login-danger-bg: #fef2f2;
  --login-radius: 0;
  --login-shadow: 0 28px 70px rgba(10, 22, 40, 0.28);
  --login-font: 'Manrope', system-ui, sans-serif;
  --login-display: 'Bebas Neue', Impact, sans-serif;
}

html.login-dark {
  --login-ink: #f1f5f9;
  --login-muted: #94a3b8;
  --login-line: #334155;
  --login-surface: #0b1220;
  --login-panel: #111a2b;
  --login-accent-soft: rgba(200, 16, 46, 0.2);
  --login-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

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

.login-page {
  min-height: 100vh;
  font-family: var(--login-font);
  background: #070d16;
  display: flex;
  align-items: stretch;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  color: var(--login-ink);
}

.login-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--login-surface);
  overflow: hidden;
  animation: loginShellIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes loginShellIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* —— Left visual panel —— */
.login-panel-visual {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
}

.login-slideshow {
  position: absolute;
  inset: 0;
}

.login-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s ease;
}

.login-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.login-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 13, 22, 0.88) 0%, rgba(11, 31, 58, 0.72) 42%, rgba(200, 16, 46, 0.38) 100%),
    linear-gradient(to top, rgba(7, 13, 22, 0.9) 0%, transparent 42%);
}

.login-visual-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.login-visual-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.login-visual-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-visual-brand-logo {
  height: clamp(56px, 8vw, 84px);
  width: auto;
  max-width: min(420px, 70vw);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
  animation: loginLogoIn 0.7s ease both;
}

.login-visual-brand-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--login-accent);
  font-size: 22px;
}

@keyframes loginLogoIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.login-visual-hero {
  max-width: 540px;
  margin-top: auto;
  animation: loginHeroIn 0.75s ease 0.1s both;
}

@keyframes loginHeroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.login-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fecaca;
  margin-bottom: 10px;
}

.login-visual-hero h2 {
  font-family: var(--login-display);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-bottom: 14px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.login-visual-hero p {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 420px;
}

.login-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 420px;
  animation: loginHeroIn 0.8s ease 0.2s both;
}

.login-photo-strip figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.login-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.login-photo-strip figure:hover img {
  transform: scale(1.06);
}

.login-feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 460px;
  animation: loginHeroIn 0.85s ease 0.28s both;
}

.login-feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--login-accent);
  color: #fff;
  flex-shrink: 0;
  font-size: 14px;
}

.login-feature-list strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.login-feature-list span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}

/* —— Right form panel —— */
.login-panel-form {
  position: relative;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(200, 16, 46, 0.06), transparent 40%),
    linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
  display: flex;
  flex-direction: column;
  padding: 24px 28px 28px;
  min-height: 100vh;
}

html.login-dark .login-panel-form {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(200, 16, 46, 0.12), transparent 42%),
    linear-gradient(180deg, #0b1220 0%, #111a2b 100%);
}

.login-form-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.login-tool-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--login-line);
  background: var(--login-surface);
  color: var(--login-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

.login-tool-btn:hover {
  color: var(--login-accent);
  border-color: #f3b4bc;
}

.login-form-inner {
  width: min(420px, 100%);
  margin: auto;
  animation: loginFormIn 0.65s ease 0.15s both;
}

@keyframes loginFormIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.login-form-brand {
  text-align: center;
  margin-bottom: 26px;
}

.login-form-logo {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}

.login-form-brand h1 {
  font-family: var(--login-display);
  font-size: 2.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--login-ink);
  margin-bottom: 8px;
}

.login-form-brand p {
  font-size: 14px;
  color: var(--login-muted);
  line-height: 1.45;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--login-danger-bg);
  color: var(--login-danger);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
}

.login-form { display: grid; gap: 16px; }

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--login-ink);
  margin-bottom: 7px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap > i {
  position: absolute;
  left: 14px;
  color: var(--login-muted);
  font-size: 14px;
  pointer-events: none;
}

.login-input-wrap input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--login-line);
  border-radius: 12px;
  padding: 0 44px 0 42px;
  font: 500 14.5px/1.2 var(--login-font);
  color: var(--login-ink);
  background: var(--login-surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-wrap input:focus {
  border-color: var(--login-accent);
  box-shadow: 0 0 0 4px var(--login-accent-soft);
}

.login-eye {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--login-muted);
  cursor: pointer;
  border-radius: 8px;
}

.login-eye:hover { color: var(--login-accent); }

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--login-muted);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--login-accent);
}

.login-forgot {
  color: var(--login-accent);
  text-decoration: none;
  font-weight: 700;
}

.login-forgot:hover { text-decoration: underline; }

.login-submit {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--login-accent) 0%, var(--login-accent-2) 100%);
  color: #fff;
  font: 800 15px/1 var(--login-font);
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.login-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(200, 16, 46, 0.34);
}

.login-submit:active { transform: translateY(0); }

.login-bay-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 31, 58, 0.06);
  border: 1px dashed rgba(11, 31, 58, 0.18);
  color: var(--login-muted);
  font-size: 12.5px;
  font-weight: 600;
}

html.login-dark .login-bay-note {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.login-bay-note i { color: var(--login-accent); }

.login-copy {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-panel-visual {
    min-height: 42vh;
  }

  .login-visual-content {
    gap: 16px;
    padding: 22px 20px 24px;
  }

  .login-feature-list { display: none; }

  .login-photo-strip {
    max-width: 100%;
  }

  .login-visual-hero h2 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .login-panel-form {
    min-height: auto;
    padding: 18px 20px 32px;
  }

  .login-form-inner {
    margin: 12px auto 0;
  }
}

@media (max-width: 520px) {
  .login-photo-strip { gap: 8px; }
  .login-form-logo { height: 52px; }
  .login-visual-brand-logo { height: 52px; }
}
