/* Login page, echoing the original page's black box,
   teal border (#008aab) and green submit button (#8bba00). */

.login-wrap {
  display: grid; gap: 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
  align-items: start;
}
@media (min-width: 54rem) { .login-wrap { grid-template-columns: 1fr 1fr; } }

.retro-login { display: grid; gap: 1rem; max-width: 32rem; width: 100%; }

.retro-frame { border: 1px solid #000; background: #000; }
.retro-inner {
  border: 2px solid #008aab;
  outline: 1px solid #fff;
  outline-offset: -3px;
  background: #000;
  color: #f1f1f1;
  padding: 1.4rem 1.4rem 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
}
.retro-inner p { margin: 0 0 .5rem; }
.retro-inner p:last-child { margin-bottom: 0; }

.retro-field { display: grid; grid-template-columns: 8rem 1fr; align-items: center; gap: .5rem 1rem; margin-bottom: .75rem; }
@media (max-width: 26rem) { .retro-field { grid-template-columns: 1fr; gap: .3rem; } }
.retro-field label { color: #f1f1f1; }
.retro-field input {
  font: 1rem Arial, Helvetica, sans-serif;
  height: 2.4rem;
  padding: 0 .6rem;
  border: 1px solid #8a8a8a;
  border-radius: 0;
  background: #fff; color: #000;
  width: 100%;
}
.retro-field input:focus-visible { outline: 3px solid #8bba00; outline-offset: 1px; }

.retro-check { display: flex; align-items: center; gap: .55rem; margin: .4rem 0 1rem; cursor: pointer; }
.retro-check input { width: 1.05rem; height: 1.05rem; accent-color: #8bba00; }

.retro-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.retro-submit {
  font: bold .95rem Arial, Helvetica, sans-serif;
  min-height: 2.4rem;
  padding: 0 1.4rem;
  background: #8bba00; color: #000;
  border: 1px solid #fff;
  cursor: pointer;
}
.retro-submit:hover { background: #a2d40a; }
.retro-submit-teal { background: #008aab; color: #f1f1f1; }
.retro-submit-teal:hover { background: #0aa0c4; }
.retro-actions-end { justify-content: flex-end; }
.retro-submit:focus-visible, .retro-link:focus-visible { outline: 3px solid #5fd3ef; outline-offset: 2px; border-radius: 0; }
.retro-link {
  background: none; border: 0; padding: .4rem 0;
  font: .85rem Arial, Helvetica, sans-serif;
  color: #5fd3ef; text-decoration: underline;
  cursor: pointer;
}
.retro-help { margin-top: 1rem !important; color: #bdbdbd; font-size: .82rem; }

.retro-result {
  border: 1px solid var(--line);
  border-left: 5px solid #d40000;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}
.retro-result p { margin: 0 0 .6rem; }
.retro-result p:last-child { margin: 0; }
.retro-result .fail {
  color: #d40000;
  font: bold 1.6rem/1.2 Arial, Helvetica, sans-serif;
}
@media (prefers-color-scheme: dark) { .retro-result .fail { color: #ff5a5a; } }
.retro-result.shake { animation: shake .4s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
