/* ── Auth pages ── */
.auth-wrap { display: grid; align-items: center; }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(340px, 460px);
  gap: 18px; align-items: stretch;
}
.auth-card { padding: 30px; }
.auth-card h1 {
  font-size: 34px; margin: 0 0 10px;
  background: linear-gradient(90deg, var(--text), var(--violet), var(--cyan));
  -webkit-background-clip: text; color: transparent;
}
.auth-card label { margin-top: 14px; }
.auth-card .btn  { width: 100%; margin-top: 18px; }

/* Password strength */
.pw-strength { margin-top: 6px; height: 4px; border-radius: 4px; background: #1e293b; overflow: hidden; }
.pw-bar { height: 100%; border-radius: 4px; width: 0; transition: width .3s, background .3s; }
.pw-bar.weak   { background: var(--red); width: 33%; }
.pw-bar.medium { background: var(--amber); width: 66%; }
.pw-bar.strong { background: var(--green); width: 100%; }

/* Toggle password visibility */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 14px; padding: 0;
}
.pw-toggle:hover { color: var(--cyan); }

.auth-terminal { min-height: 340px; }
.log-lines {
  padding: 22px; font-family: var(--mono); font-size: 13px;
  color: #b9c3e9; line-height: 1.9;
}
.log-lines span { color: var(--green); }
.log-lines p:nth-child(4) span { color: var(--amber); }
.log-entry-anim { animation: log-in .4s ease; }
@keyframes log-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Auth terminal decoration */
.auth-terminal::after {
  content: ''; position: absolute; right: 18px; bottom: 18px;
  width: 130px; height: 130px;
  border: 1px solid var(--cyan);
  clip-path: polygon(50% 0,95% 25%,95% 75%,50% 100%,5% 75%,5% 25%);
  opacity: .15;
  box-shadow: 0 0 26px rgba(34,211,238,.15);
}

/* Login info banner */
.auth-info {
  margin-top: 16px; padding: 12px 16px;
  border: 1px solid rgba(34,211,238,.2);
  border-radius: 8px; background: rgba(34,211,238,.05);
  font-family: var(--mono); font-size: 12px; color: #7abccc;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-terminal { min-height: auto; }
}
