/* ===== LOGIN PAGE ===== */

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

.login-page {
  min-height: 100vh;
  background: #fff;
  display: flex;
  font-family: 'Mulish', sans-serif;
}

/* ── LEFT: hero image ── */
.login-hero {
  flex: 1 1 50%;
  position: relative;
  min-height: 500px;
  background-image: url('https://www.ruroc.com/media/atlas-4/Joker-series-bkg--desktop.jpg');
  background-size: cover;
  background-position: top center;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
}

.login-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}

.login-hero-text {
  position: relative;
  z-index: 1;
  color: #fff;
}

.login-hero-text h1 {
  font-size: 2.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.login-hero-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  max-width: 340px;
  line-height: 1.6;
}

/* ── RIGHT: form panel ── */
.login-panel {
  flex: 0 0 440px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  border-left: 1px solid #e8e8e8;
}

.login-panel-title {
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0a0a0a;
  margin: 0 0 0.4rem;
}

.login-panel-sub {
  font-size: 0.875rem;
  color: #888;
  margin: 0 0 2rem;
}

/* Form */
.lf-group {
  margin-bottom: 1.1rem;
}

.lf-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.35rem;
}

.lf-input {
  width: 100%;
  border: 1.5px solid #d4d4d4;
  border-radius: 2px;
  background: #fafafa;
  color: #0a0a0a;
  font-family: 'Mulish', sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.lf-input:focus {
  border-color: #0a0a0a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.lf-input::placeholder { color: #bbb; }

/* Password row */
.lf-pw-wrap {
  position: relative;
}

.lf-pw-toggle {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color 0.15s;
}

.lf-pw-toggle:hover { color: #333; }

.lf-pw-toggle .material-symbols-outlined { font-size: 1.1rem; }

/* Show password checkbox */
.lf-show-pw {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.lf-show-pw input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #0a0a0a;
  cursor: pointer;
}

.lf-show-pw label {
  font-size: 0.82rem;
  color: #666;
  cursor: pointer;
  user-select: none;
}

/* Error */
.lf-error {
  display: none;
  font-size: 0.82rem;
  color: #c0392b;
  background: #fff5f5;
  border-left: 2px solid #c0392b;
  padding: 0.55rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.lf-error.visible { display: block; }

/* Submit */
.lf-btn {
  width: 100%;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: 'Mulish', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 1rem;
}

.lf-btn:hover { background: #222; }
.lf-btn:active { transform: scale(0.99); }

/* Forgot / footer links */
.lf-forgot {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

.lf-forgot:hover { color: #0a0a0a; text-decoration: underline; }

.lf-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 0 0 1.5rem;
}

.lf-signup {
  text-align: center;
  font-size: 0.82rem;
  color: #888;
}

.lf-signup strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  color: #0a0a0a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.lf-signup a {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.7rem 2rem;
  border: 1.5px solid #0a0a0a;
  border-radius: 2px;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.lf-signup a:hover {
  background: #0a0a0a;
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .login-page { flex-direction: column; }

  .login-hero {
    flex: none;
    height: 35vh;
    min-height: 240px;
    padding: 2rem;
  }

  .login-hero-text h1 { font-size: 1.8rem; }

  .login-panel {
    flex: none;
    padding: 2.5rem 1.5rem;
    border-left: none;
    border-top: 1px solid #e8e8e8;
  }
}