/* ==========================================================================
   Login — 100% Official SAP Business One (0px Sharp · SAP Vector Background)
   ========================================================================== */

.login-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
  background-color: #e8eff5;
  background-image: var(--sap-vector-canvas);
  background-size: cover;
}

/* SAP Business One Top Shellbar Strip */
.login-scene::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.6rem;
  background-color: #354a5f;
  background-image: var(--sap-vector-shell);
  background-size: cover;
  border-bottom: 2px solid #f0ab00;
  z-index: 3;
}

.login-scene-bg,
.login-grid-floor,
.login-iso-cube,
.login-pipeline,
.login-scanline,
.login-vignette,
.login-card-glow,
.login-orb {
  display: none;
}

.login-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 52rem;
  border: 1px solid #89919a;
  background-color: #f8fafc;
  background-image: var(--sap-vector-container);
  background-size: cover;
  box-shadow: 0 10px 28px rgba(29, 45, 62, 0.18);
}

@media (min-width: 1024px) {
  .login-layout {
    grid-template-columns: 1.05fr 1fr;
  }
}

.login-brand-panel {
  display: none;
  padding: 2.75rem 2.5rem;
  background-color: #354a5f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='lbg' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23233344'/%3E%3Cstop offset='55%25' stop-color='%23354a5f'/%3E%3Cstop offset='100%25' stop-color='%232a435d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='640' height='640' fill='url(%23lbg)'/%3E%3Cpolygon points='0,0 420,0 160,640 0,640' fill='%23ffffff' fill-opacity='0.04'/%3E%3Cpolygon points='420,0 640,0 640,360 280,640 160,640' fill='%230a6ed1' fill-opacity='0.14'/%3E%3Cpolygon points='640,320 640,640 240,640' fill='%23f0ab00' fill-opacity='0.1'/%3E%3Cpolyline points='0,470 260,210 510,350 640,120' fill='none' stroke='%23f0ab00' stroke-opacity='0.22' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: cover;
  color: #ffffff;
  border-right: 3px solid #f0ab00;
}

@media (min-width: 1024px) {
  .login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.login-brand-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f0ab00;
  margin-bottom: 0.75rem;
}

.login-brand-headline {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.login-brand-stats {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.login-brand-stats li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #dce6f0;
}

.login-stat-dot {
  width: 6px;
  height: 6px;
  background: #f0ab00;
  flex-shrink: 0;
}

.login-card-stage {
  width: 100%;
  background: transparent;
}

.login-card {
  position: relative;
  padding: 2.25rem 2rem;
  background: transparent;
}

.login-card-bracket {
  display: none;
}

.login-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  background: #ffffff;
  border: 1px solid #c5d0dc;
  margin-bottom: 0.8rem;
  padding: 0.4rem;
}

.login-logo {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d2d3e;
}

.login-subtitle {
  font-size: 0.8rem;
  color: #6a6d70;
  margin-top: 0.2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-error {
  font-size: 0.8rem;
  color: #8a0000;
  border: 1px solid #e5b8b8;
  border-left: 4px solid #bb0000;
  background: #fff0f0;
  padding: 0.6rem 0.75rem;
}

.login-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #32363a;
  margin-bottom: 0.3rem;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 0.7rem;
  width: 1rem;
  height: 1rem;
  color: #6a6d70;
  pointer-events: none;
}

.login-input-wrap input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.35rem;
  min-height: 2.5rem;
  border: 1px solid #89919a;
  background: #ffffff;
  color: #32363a;
  font-size: 0.875rem;
  outline: none;
}

.login-input-wrap input::placeholder {
  color: #89919a;
}

.login-input-wrap input:focus {
  border-color: #0a6ed1;
  background: #fffdf5;
  box-shadow: inset 0 0 0 1px #0a6ed1;
}

.login-input-wrap:focus-within .login-input-icon {
  color: #0a6ed1;
}

.login-submit {
  width: 100%;
  justify-content: center;
  min-height: 2.55rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

.login-submit-arrow {
  width: 1rem;
  height: 1rem;
}

.login-page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.65rem 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: #475566;
  background: #e5ebf1;
  border-top: 1px solid #c5d0dc;
}
