/* ==========================================================================
   ChatX2 — Minimal Bootstrap Login UX/UI (Plus Jakarta Sans, Flat, Clean)
   ========================================================================== */

.login-view {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.login-shell {
  width: 100%;
  max-width: 390px;
}

.login-brand-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-logo-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  display: grid;
  place-items: center;
}

.login-brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
}

.login-brand-tagline {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.login-panel {
  border-radius: 20px;
  padding: 26px 24px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: none;
}

.login-panel .form-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.login-panel .password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.login-panel .password-field .form-control {
  height: 48px;
  padding: 0 46px 0 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  box-shadow: none;
}

[data-theme="light"] .login-panel .password-field .form-control {
  background: #f8fafc;
}

.login-panel .password-field .form-control:focus {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: none;
}

.login-panel .password-field .icon-btn {
  position: absolute;
  right: 7px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.login-submit-btn {
  height: 48px;
  border-radius: 12px;
  border: none;
  background: #4f46e5;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.login-submit-btn:hover {
  background: #4338ca;
  color: #ffffff;
}

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

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-panel .login-error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--danger);
  min-height: 18px;
  text-align: center;
}

.login-footer-note {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 420px) {
  .login-panel {
    padding: 22px 18px;
    border-radius: 16px;
  }
}
