/* ─────────────────────────────────────────────
   Login page redesign styles
   (works with shared/_header.php + _navbar.php)
   ───────────────────────────────────────────── */

.login-hero {
  position: relative;
  padding: 64px 0 56px;
  text-align: center;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #2d8011 50%, #4cf332 100%);
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.login-hero > .container {
  position: relative;
  z-index: 1;
}
.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbe4ff;
}
.login-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin: 18px 0 10px;
  letter-spacing: -0.02em;
}
.login-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: #dbe4ff;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Split login card (form left / image right) ── */
.login-wrap {
  padding: 56px 0 80px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.login-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(9, 20, 44, 0.18);
  border: 1px solid #eef2f7;
}
.login-form-panel {
  padding: 44px 46px;
}
.login-form-panel .board-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.login-form-panel .board-sub {
  color: #64748b;
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.login-input-box {
  position: relative;
  margin-bottom: 18px;
}
.login-input-box > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #2563eb;
  font-size: 16px;
  z-index: 1;
}
.login-input-box input {
  width: 100%;
  height: 50px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  padding: 0 44px;
  font-size: 15px;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.login-input-box input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.login-input-box .toggle-pw {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
  font-size: 17px;
}
.login-input-box .toggle-pw:hover {
  color: #2563eb;
}

.login-form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 22px;
  font-size: 0.86rem;
}
.login-form-extras a {
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.login-form-extras a:hover {
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}
.login-submit-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}
.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hidden utility forms (forgot / OTP / new password) */
.login-utility-form {
  display: none;
}
.login-utility-link {
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.86rem;
}
.login-utility-link:hover {
  text-decoration: underline;
}

/* Image panel */
.login-image-panel {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0 22px 22px 0;
  overflow: hidden;
  position: relative;
  min-height: 100%;
}
.login-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 12, 29, 0) 40%, rgba(2, 12, 29, 0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
}
.login-image-overlay h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.login-image-overlay p {
  font-size: 0.9rem;
  color: #dbe4ff;
  line-height: 1.6;
  margin: 0;
}

/* Alert box */
.login-alert {
  display: none;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 860px) {
  .login-card {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .login-image-panel {
    min-height: 200px;
    order: -1;
  }
}
@media (max-width: 520px) {
  .login-form-panel {
    padding: 30px 24px;
  }
  .login-hero {
    padding: 44px 0 40px;
  }
}
