/* ==============================
   LOGIN PAGE - Orange Cream
============================== */
#loginPage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(30,15,5,0.18), transparent 30%),
    linear-gradient(135deg, #FF6B35 0%, #E55A24 35%, #FFB347 70%, #FF8C5A 100%);
  overflow-y: auto;
}

.login-shell {
  width: min(1060px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: rgba(255,255,255,0.96);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(30,15,5,0.28);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.40);
}

/* ======== LEFT: Visual Panel ======== */
.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(229,90,36,0.97), rgba(255,107,53,0.94), rgba(255,179,71,0.90));
  overflow: hidden;
}

.login-visual::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  right: -80px; top: -80px;
}

.login-visual::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  left: -70px; bottom: -70px;
}

.login-visual-content,
.login-visual-footer { position: relative; z-index: 1; }

.login-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.login-headline {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 12px;
  color: #fff;
}

.login-desc {
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  font-size: 0.92rem;
  max-width: 440px;
}

.login-features {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  max-width: 440px;
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  color: rgba(255,255,255,0.96);
  font-weight: 700;
  font-size: 0.90rem;
}

.login-feature-item i { font-size: 1rem; opacity: 0.9; }

.login-visual-footer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
}

/* ======== RIGHT: Form Panel ======== */
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 40px;
  background: linear-gradient(180deg, #fff 0%, #FFFAF5 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-logo-wrap {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo {
  width: 86px; height: 86px;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid #FFD4B0;
  padding: 9px;
  box-shadow: 0 10px 28px rgba(255,107,53,0.14);
  display: inline-block;
}

.login-app-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #1A0E05;
  margin-top: 10px;
  margin-bottom: 3px;
}

.login-app-sub {
  font-size: 0.88rem;
  color: #7A6555;
}

/* Form fields */
.login-label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1A0E05;
  margin-bottom: 7px;
}

.login-input-group {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
}

.login-input-icon {
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: #FFF3E6;
  border: 1.5px solid #FFD4B0;
  border-right: 0;
  border-radius: 14px 0 0 14px;
  color: #7A6555;
  font-size: 0.9rem;
}

.login-input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid #FFD4B0;
  border-radius: 0 14px 14px 0;
  background: #fff;
  color: #1A0E05;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.login-input:focus {
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.login-input-toggle {
  padding: 0 13px;
  background: #FFF3E6;
  border: 1.5px solid #FFD4B0;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  color: #7A6555;
  cursor: pointer;
  transition: background 0.15s;
}

.login-input-toggle:hover { background: #FFE4CC; }

/* When the input has toggle, remove its right radius */
.login-input-group .login-input:not(:last-child) {
  border-radius: 0;
}

/* Login button */
.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #FF6B35, #E55A24);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 0.97rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255,107,53,0.32);
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background: linear-gradient(135deg, #E55A24, #C8491A);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,107,53,0.38);
}

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

/* Actions grid */
.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.login-action-btn {
  padding: 10px 12px;
  border: 1.5px solid #FFD4B0;
  border-radius: 14px;
  background: #fff;
  color: #3D2B1A;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.25;
}

.login-action-btn:hover {
  background: #FFF3E6;
  border-color: #FF6B35;
  color: #FF6B35;
}

.login-action-btn.full { grid-column: 1 / -1; }

/* Note */
.login-note {
  margin-top: 14px;
  padding: 10px 13px;
  background: #FFF3E6;
  border: 1px solid #FFD4B0;
  border-radius: 12px;
  font-size: 0.80rem;
  color: #7A6555;
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* Error alert */
.login-alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: none;
  align-items: center;
  gap: 8px;
}

.login-alert.show { display: flex; }
.login-alert-error   { background: rgba(220,53,69,0.10); color: #b91c1c; border: 1px solid rgba(220,53,69,0.20); }
.login-alert-success { background: rgba(25,135,84,0.10); color: #166534; border: 1px solid rgba(25,135,84,0.20); }

/* ==============================
   RESPONSIVE LOGIN
============================== */
@media (max-width: 991.98px) {
  #loginPage { padding: 16px; }

  .login-shell {
    display: block;
    max-width: 460px;
    border-radius: 22px;
    min-height: auto;
    margin: 0 auto;
  }

  .login-visual { display: none; }

  .login-form-panel {
    padding: 32px 22px;
  }
}

@media (max-height: 720px) and (min-width: 992px) {
  .login-visual { padding: 28px 36px; }
  .login-headline { font-size: 1.7rem; }
  .login-feature-item { padding: 9px 12px; font-size: 0.86rem; }
  .login-form-panel { padding: 30px 36px; }
  .login-logo { width: 72px; height: 72px; }
}
