/* ============================================================
   KEY PROS — Login Page  |  Dark + Habano Theme
   ============================================================ */

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

.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #1A1A1A;
  overflow-x: hidden;
}

/* ── Top half — logo area (white brand zone) ─────────────────── */
.login-logo-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 28px;
  min-height: 45vh;
  background: #FFFFFF;
  border-radius: 0 0 28px 28px;
}

.login-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Fallback if image missing */
.login-logo-fallback {
  text-align: center;
  color: #E07040;
}
.login-logo-fallback .logo-mark {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 10px;
}
.login-logo-fallback .logo-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .04em;
}
.login-logo-fallback .logo-sub {
  font-size: 13px;
  color: #9A9690;
  margin-top: 4px;
}

/* ── Divider line ────────────────────────────────────────────── */
.login-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, #E07040 20%, #E07040 80%, transparent);
  margin: 0;
}

/* ── Bottom half — form area ─────────────────────────────────── */
.login-form-area {
  padding: 28px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Saved user greeting */
.login-greeting {
  margin-bottom: 20px;
}
.login-greeting-label {
  font-size: 12px;
  color: #9A9690;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  margin-bottom: 4px;
}
.login-greeting-name {
  font-size: 22px;
  font-weight: 800;
  color: #E07040;
  line-height: 1.1;
}
.login-change-user {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #9A9690;
  text-decoration: none;
  border-bottom: 1px solid #3D3D3D;
  padding-bottom: 1px;
  cursor: pointer;
  transition: color .2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
.login-change-user:hover { color: #E07040; border-bottom-color: #E07040; }

/* Form fields */
.login-field { margin-bottom: 16px; }

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9A9690;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 7px;
}

.login-field input {
  width: 100%;
  padding: 13px 16px;
  background: #2E2E2E;
  border: 1.5px solid #3D3D3D;
  border-radius: 10px;
  color: #F0EDE8;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.login-field input:focus {
  outline: none;
  border-color: #E07040;
  box-shadow: 0 0 0 3px rgba(196,149,90,.18);
}
.login-field input::placeholder { color: #5A5A5A; }

/* Error */
.login-error-msg {
  display: none;
  background: rgba(217,79,79,.15);
  color: #D94F4F;
  border: 1px solid rgba(217,79,79,.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}
.login-error-msg.visible { display: block; }

/* Sign In button */
.login-btn {
  width: 100%;
  padding: 15px;
  background: #E07040;
  color: #1A1A1A;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .03em;
  transition: background .2s, transform .1s;
  margin-top: 4px;
}
.login-btn:hover   { background: #C05830; }
.login-btn:active  { transform: scale(.98); }
.login-btn:disabled { opacity: .5; pointer-events: none; }

/* Footer note */
.login-footer-note {
  text-align: center;
  font-size: 11px;
  color: #5A5A5A;
  margin-top: 22px;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-height: 700px) {
  .login-logo-area { min-height: 50vh; }
}
@media (min-width: 420px) {
  .login-form-area { padding-left: 40px; padding-right: 40px; }
}
