/* =========================================================
   ISA ERP — Login
   ========================================================= */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--isa-bg);
}

.login-visual {
  position: relative;
  overflow: hidden;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(800px 500px at 20% 20%, rgba(var(--isa-primary-rgb), 0.35), transparent 55%),
    radial-gradient(700px 450px at 80% 80%, rgba(var(--isa-secondary-rgb), 0.3), transparent 50%),
    linear-gradient(155deg, #0B1220 0%, #1E3A8A 55%, #312E81 100%);
  color: #fff;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-brand-mark--img {
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
}

.login-brand-mark--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand h1 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0;
}

.login-brand p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.login-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.login-hero-copy h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.login-hero-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  margin: 0;
}

.login-floating-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 360px;
}

.login-float-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: isaFadeUp 0.7s var(--isa-ease) both;
}

.login-float-card:nth-child(2) { animation-delay: 0.12s; }
.login-float-card:nth-child(3) { animation-delay: 0.22s; }

.login-float-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
}

.login-float-card strong {
  display: block;
  font-size: 0.9rem;
}

.login-float-card span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 40px 28px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  border-radius: 28px;
  background: var(--isa-surface-strong);
  backdrop-filter: var(--isa-blur-strong);
  -webkit-backdrop-filter: var(--isa-blur-strong);
  border: 1px solid var(--isa-glass-border);
  box-shadow: var(--isa-shadow-lg);
  animation: isaScaleIn 0.5s var(--isa-ease) both;
}

.login-card-header {
  margin-bottom: 28px;
}

.login-card-header h2 {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.login-card-header p {
  margin: 0;
  font-size: 0.92rem;
}

.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.login-actions a {
  font-size: 0.85rem;
  font-weight: 600;
}

.login-submit {
  width: 100%;
  height: 50px;
  font-size: 0.95rem;
}

.login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--isa-text-muted);
}

.login-demo-hint {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--isa-primary-soft);
  color: var(--isa-primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.login-page--narrow {
  grid-template-columns: 1fr;
}

.login-panel--solo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
}

.login-panel--solo .login-card {
  width: min(100%, 480px);
}
