/* ================================================================
   LOGIN PAGE
   ================================================================ */
body {
  margin: 0;
  background: #e9eef5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #e9eef5;
  position: relative;
  overflow: hidden;
}
.login-wrapper::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  top: -210px;
  right: -120px;
  border: 54px solid rgba(15,23,42,.045);
  border-radius: 50%;
  pointer-events: none;
}

/* Card */
.login-card {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

/* ---- Left branding panel ---- */
.login-brand {
  flex: 0 0 44%;
  background: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem,6vw,6rem);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.login-brand::before {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  right: -130px;
  bottom: -120px;
  border: 38px solid rgba(255,255,255,.045);
  border-radius: 50%;
  pointer-events: none;
}
.brand-logo {
  position: relative; z-index: 1; text-decoration: none;
  display: inline-flex; min-height: 44px; align-items: center; justify-content:center; gap: .65rem;
}
.brand-logo img { display:block; flex:0 0 44px; width:44px; height:44px; object-fit:contain; }
.brand-logo .brand-name {
  font-family: 'Indie Flower', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 44px;
  white-space: nowrap;
  transform: translateY(2px);
}
.brand-logo .brand-name span { color: #FFCC00; }

.brand-tagline {
  position: relative; z-index: 1;
  text-align: center;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 440px;
}

.brand-features {
  position: relative; z-index: 1;
  list-style: none; padding: 0; margin: 0;
  width: 100%;
  max-width: 440px;
}
.brand-features li {
  display: flex; align-items: center; gap: .6rem;
  color: #dbe4ef;
  font-size: .9375rem;
  padding: .48rem 0;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.brand-features li:last-child { border-bottom: none; }
.brand-features li i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fdba74;
  background: #1f2937;
  font-size: .82rem;
  flex-shrink: 0;
}

/* ---- Right form panel ---- */
.login-form-panel {
  flex: 1;
  background: #fff;
  padding: clamp(2rem,6vw,6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.login-form-panel > * { width:100%; max-width:480px; }

.login-form-panel h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0d1b2a;
  margin-bottom: .3rem;
  letter-spacing: -.035em;
}
.login-form-panel .subtitle {
  font-size: .9375rem;
  color: #64748b;
  margin-bottom: 1.35rem;
}
.login-form-panel .subtitle a { color: #c2410c; font-weight: 700; text-decoration: none; }
.login-form-panel .subtitle a:hover { text-decoration: underline; }
.login-form-panel .form-label {
  font-size: .875rem !important;
  line-height: 1.35;
  letter-spacing: .035em;
}

/* Divider */
.or-divider {
  display: flex; align-items: center; gap: .75rem;
  color: #64748b; font-size: .875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 1rem 0;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* Forgot / legal */
.forgot-link { color: #c2410c; font-size: .875rem; font-weight:600; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
.login-form-panel .form-check-label { font-size:.875rem !important; }
.legal-text { font-size: .8125rem; line-height:1.5; color: #64748b; margin-top: 1.5rem; text-align: center; }

/* Alert */
.login-form-panel .alert {
  border-radius: 12px;
  font-size: .875rem;
  padding: .75rem 1rem;
  border: none;
}

/* Responsive */
@media (min-width: 641px) and (max-height: 760px) {
  .login-wrapper { align-items:flex-start; }
  .login-card { min-height:100vh; }
  .login-brand { padding-block:1.75rem; }
  .login-form-panel { padding-block:1.5rem; }
  .brand-tagline { margin-bottom:1rem; }
  .brand-features li { padding:.34rem 0; }
  .login-form-panel .subtitle { margin-bottom:1rem; }
  .legal-text { margin-top:1rem; }
}
@media (max-width: 640px) {
  .login-wrapper { align-items:flex-start; padding:0; }
  .login-card { flex-direction: column; border-radius:0; }
  .login-card { min-height:auto; }
  .login-brand { flex: none; padding: 1.5rem; }
  .brand-features { display: none; }
  .brand-tagline { margin:.75rem 0 0; }
  .login-form-panel { padding: 1.75rem 1.25rem; }
  .login-form-panel h2 { font-size:1.75rem; }
}
