.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.login-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-hero__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  z-index: 2;
  position: relative;
}
.login-hero__brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  display: grid; place-items: center;
}

.login-hero__copy { max-width: 460px; z-index: 2; position: relative; }
.login-hero__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  margin-bottom: 14px;
}
.login-hero__title {
  font-size: 42px;
  line-height: 1.12;
  color: var(--text-on-dark);
}
.login-hero__desc {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-on-dark-dim);
  line-height: 1.6;
}

.login-hero__stats {
  display: flex;
  gap: 36px;
  z-index: 2;
  position: relative;
}
.login-hero__stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-on-dark);
}
.login-hero__stats div span {
  font-size: 12.5px;
  color: var(--text-on-dark-dim);
}

/* Shade-tab wall: the signature element — ambient, slow-drifting rows of
   dental shade-guide tabs echoing the stage-progress bars used across the app. */
.tab-wall {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  opacity: 0.5;
  z-index: 1;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, black 40%, transparent 78%);
}
.tab-wall__row {
  display: flex;
  gap: 10px;
  animation: tabDrift 46s linear infinite;
}
.tab-wall__row:nth-child(even) { animation-direction: reverse; animation-duration: 60s; }
.tab-wall__row i {
  flex-shrink: 0;
  width: 30px;
  height: 64px;
  border-radius: 3px 3px 12px 12px;
  opacity: 0.85;
}
@keyframes tabDrift {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--porcelain);
  position: relative;
}

.login-lang {
  position: absolute;
  top: 28px;
  right: 32px;
}

.login-box {
  width: 100%;
  max-width: 380px;
}
.login-box__head { margin-bottom: 32px; }
.login-box__head h1 {
  font-size: 26px;
  margin-bottom: 6px;
}
.login-box__head p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.login-error {
  background: var(--status-debt-bg);
  color: var(--status-debt);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  animation: shake 0.4s var(--ease-in-out);
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.login-footer {
  margin-top: 40px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-lang { position: static; margin-bottom: 24px; align-self: flex-end; display: flex; justify-content: flex-end; }
  .login-panel { padding: 28px 20px; min-height: 100vh; }
}
