/* ============================================================
   SOLO — auth pages (/login, /register, /forgot)
   Adapted from login.page.css (design: login.dc.html), scoped to
   .auth-page. Full-screen split view rendered with layouts/auth.htm
   (no site header / footer), as in the design.
   ============================================================ */

body.layout-auth { background: var(--bg); min-height: 100vh; }
.auth-page { padding: 0; }

.auth-page .login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh; /* full screen without the mobile address-bar jump */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

/* ----- Left: image side ----- */
.auth-page .login-visual {
  position: relative; overflow: hidden;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(31,18,8,.18) 0%, rgba(31,18,8,.10) 40%, rgba(31,18,8,.25) 100%),
    url('../media/mqf5cw1q-pexels-alexeydemidov-10624282.jpg') center / cover no-repeat;
}

/* ----- Right: form side ----- */
.auth-page .login-form-side {
  position: relative;
  padding: 40px 56px;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.auth-page .top-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.auth-page .top-row a { color: var(--accent); font-weight: 500; }
.auth-page .top-row a:hover { text-decoration: underline; }
.auth-page .form-wrap {
  margin: auto 0;
  width: 100%;
  max-width: 440px;
  align-self: center;
  padding: 32px 0;
}
.auth-page .form-wrap h1 {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.auth-page .form-wrap .desc {
  color: var(--muted); font-size: 14px; line-height: 1.6;
  max-width: 44ch;
  margin-bottom: 36px;
}
.auth-page .form-wrap .desc .ink { color: var(--fg); font-weight: 500; }

.auth-page .auth-form { display: grid; gap: 18px; }
.auth-page .field { display: grid; gap: 8px; }
.auth-page .field > label,
.auth-page .field-label {
  font-size: 13px; font-weight: 500; color: var(--fg);
}
.auth-page .field .input { position: relative; }
.auth-page .field input[type="email"],
.auth-page .field input[type="password"],
.auth-page .field input[type="text"] {
  width: 100%;
  background: var(--surface-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px 14px 46px;
  font: inherit; font-size: 15px; color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.auth-page .field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.auth-page .field input::placeholder { color: var(--muted-soft); }
.auth-page .field .icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.auth-page .field .icon svg { display: block; }
.auth-page .field .toggle-pwd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--muted); border-radius: 8px;
  cursor: pointer;
}
.auth-page .field .toggle-pwd:hover { color: var(--fg); background: var(--accent-bg); }
.auth-page .field input.has-toggle { padding-right: 56px; }

/* Inline validation messages (data-request-validate) */
.auth-page .field-error { font-size: 12.5px; color: #8A1C07; }
.auth-page .field-error:empty { display: none; }

.auth-page .row-opts {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: -4px 0 8px;
  font-size: 13px;
}
.auth-page .check {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; color: var(--fg-soft);
}
.auth-page .check input {
  appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 0;
  border: 1px solid var(--border-strong); border-radius: 5px;
  background: var(--surface-elev);
  display: inline-grid; place-content: center;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.auth-page .check input:checked { background: var(--accent); border-color: var(--accent); }
.auth-page .check input:checked::after {
  content: ''; width: 5px; height: 9px;
  border: 2px solid #FBF7F0;
  border-top: 0; border-left: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.auth-page .check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-page .forgot, .auth-page .alt-link a { color: var(--accent); font-weight: 500; }
.auth-page .forgot:hover, .auth-page .alt-link a:hover { text-decoration: underline; }

.auth-page .topic-list { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.auth-page .topic-list legend { padding: 0; margin-bottom: 10px; }
.auth-page .topic-list .check { align-items: flex-start; font-size: 14px; line-height: 1.45; }
.auth-page .topic-list .check input { margin-top: 1px; }

.auth-page .submit {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #FBF7F0;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.auth-page .submit:hover { background: var(--accent-2); transform: translateY(-1px); }
.auth-page .submit:active { transform: translateY(0); }
.auth-page .submit[disabled] { opacity: .7; cursor: progress; }

.auth-page .alt-link { font-size: 13.5px; color: var(--muted); text-align: center; margin: 4px 0 0; }

.auth-page .auth-flash { margin-bottom: 20px; }
.auth-page .signed-in { display: grid; gap: 14px; justify-items: start; }

.auth-page .login-foot {
  margin-top: auto;
  font-size: 12px; color: var(--muted);
  display: flex; justify-content: flex-end; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .auth-page .login-wrap { grid-template-columns: 1fr; }
  .auth-page .login-visual { min-height: 240px; }
  .auth-page .login-form-side { padding: 32px; }
}
@media (max-width: 480px) {
  .auth-page .login-form-side { padding: 24px; }
  .auth-page .row-opts { flex-wrap: wrap; }
}
