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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
}

/* ─── Layout ─────────────────────────────────────────── */

.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left: store photo panel */
.login-panel-left {
  flex: 1;
  position: relative;
  background-image: url('../images/store.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
}

.login-panel-left .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(187,0,0,0.82) 0%,
    rgba(80,0,0,0.65) 60%,
    rgba(0,0,0,0.55) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px;
}

.login-panel-left .tagline {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-panel-left h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
}

.login-panel-left .sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 0;
  max-width: 300px;
  line-height: 1.5;
}

/* Right: form panel */
.login-panel-right {
  width: 420px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}

.login-form-box {
  width: 100%;
  max-width: 340px;
}

/* ─── Form header ────────────────────────────────────── */

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

.login-form-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  text-align: center;
}

.login-form-box .login-sub {
  text-align: center;
  color: #888;
  font-size: 0.875rem;
  margin: 0 0 28px;
}

/* ─── Form fields ────────────────────────────────────── */

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field-group .form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

.field-group .form-control:focus {
  border-color: #bb0000;
  box-shadow: 0 0 0 3px rgba(187,0,0,0.12);
  background: #fff;
}

/* ─── Submit button ──────────────────────────────────── */

.btn-login {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #bb0000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
}

.btn-login:hover {
  background: #a20000;
  box-shadow: 0 4px 14px rgba(187,0,0,0.35);
}

.btn-login:active {
  transform: scale(0.985);
}

/* ─── Footer links ───────────────────────────────────── */

.login-links {
  margin-top: 20px;
  text-align: center;
}

.login-links a {
  color: #bb0000;
  font-size: 0.875rem;
  text-decoration: none;
}

.login-links a:hover {
  color: #a20000;
  text-decoration: underline;
}

.login-footer {
  margin-top: 36px;
  text-align: center;
  padding-top: 20px;
  border-top: 1.5px solid #eee;
}

.login-footer .dev-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 4px;
}

.login-footer a {
  color: #bb0000;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.login-footer a:hover {
  color: #a20000;
  text-decoration: underline;
}

/* ─── Mobile image header (shown only on small screens) ─ */

.mobile-banner {
  display: none;
  width: 100%;
  height: 200px;
  position: relative;
  background-image: url('../images/store.webp');
  background-size: cover;
  background-position: center top;
  flex-shrink: 0;
}


/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
  }

  .login-panel-left {
    display: none;
  }

  .mobile-banner {
    display: block;
  }

  .login-panel-right {
    width: 100%;
    box-shadow: none;
    padding: 32px 24px 40px;
    align-items: flex-start;
  }

  .login-form-box {
    max-width: 100%;
  }

  .login-logo {
    display: block;
  }
}
