:root { --brand:#4c6fff; --brand-dark:#3b5bdb; }

/* Shared site footer for auth/marketing pages (Liner theme) */
.site-footer {
  background: #fff;
  border-top: 1px solid #e6eaf2;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer-brand img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 14px;
  object-fit: contain;
}
.site-footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
  max-width: 320px;
}
.site-footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  margin: 0 0 14px;
}
.site-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer-col li {
  margin-bottom: 10px;
}
.site-footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: #475569;
  transition: color 0.2s ease;
}
.site-footer-col a:hover {
  color: var(--brand);
}
.site-footer-col a.active {
  color: var(--brand);
  font-weight: 600;
}
.site-footer-bottom {
  border-top: 1px solid #e6eaf2;
  text-align: center;
  padding: 16px 24px;
  font-size: 13px;
  color: #94a3b8;
}
@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    padding: 36px 20px 24px;
  }
}

/* Shared modal styles for auth pages */
.modal {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  opacity: 0; transition: opacity .25s ease;
}
.modal.open .modal-backdrop { opacity: 1; }

.modal-card {
  position: relative;
  width: min(92vw, 430px);
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 30px 28px 26px;
  transform: translateY(20px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  box-sizing: border-box;
}
.modal.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute; top: 10px; right: 10px;
  background: transparent; border: 0; font-size: 22px; line-height: 1;
  cursor: pointer; color: #666; padding: 6px; border-radius: 8px;
}
.modal-close:hover { background:#f5f5f5; }

.modal-logo {
  display: block;
  width: auto;
  max-width: 200px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 14px auto;
}
.modal-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px 0;
  color: #0f172a;
}

.modal-errors {
  margin-bottom: 12px; padding: 10px 12px; border-radius: 8px;
  background: #fef2f2; color: #dc2626; font-size: 14px; display: none;
}
.modal-errors:not(:empty) { display: block; }
.modal-errors.is-success {
  background: #f0fdf4;
  color: #16a34a;
}
.modal-errors .modal-error-message { margin: 0; }

.modal-subtitle {
  text-align: center;
  font-size: 14px;
  color: #475569;
  margin: -10px 0 18px 0;
  line-height: 1.55;
}

.alt-link-left {
  text-align: left;
  margin: -4px 0 12px 0;
}

.field-error {
  display: block; font-size: 12px; color: red; margin-top: 4px;
}
.field-error:empty { display: none; }

.form-group.form-check {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.form-group.form-check input[type="checkbox"] { width: auto; }
.form-group.form-check label { margin-bottom: 0; }

.form-group { margin-bottom: 14px; }
label { display:block; font-size: 13px; color:#555; margin-bottom:6px; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; padding: 12px;
  border: 1px solid #ddd; border-radius: 8px; font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}
input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(76,111,255,.15);
  outline: none;
}
.submit-btn {
  width: 100%; padding: 13px 16px; border: 0;
  border-radius: 8px; background: var(--brand); color:#fff;
  font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s;
}
.submit-btn:hover { background:var(--brand-dark); }

.alt-link { text-align:center; margin-top:12px; font-size:14px; color:#555; }
.alt-link a { color: var(--brand); text-decoration:none; font-weight:700; }
.alt-link a:hover { text-decoration: underline; }

/* Standalone auth form pages (login, register, forgot/reset password, verify email)
   Solic-inspired layout on the Liner palette */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(76, 111, 255, 0.10), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(59, 91, 219, 0.08), transparent 55%),
    #f6f8fb;
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}
.auth-brand {
  display: block;
  margin: 0 auto 22px;
}
.auth-brand img {
  height: 40px;
  display: block;
}
.auth-card {
  width: min(92vw, 430px);
  background: #fff;
  border: 1px solid #e6eaf2;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: 30px 28px 26px;
  box-sizing: border-box;
}
.auth-card .modal-logo {
  width: auto;
  max-width: 200px;
  height: 72px;
  object-fit: contain;
  margin: 8px auto 6px auto;
}
.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}
.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: #475569;
  margin: 0 0 20px;
  line-height: 1.55;
}
.auth-card label,
.modal-card label {
  font-weight: 600;
  color: #334155;
}

/* Inputs with a leading icon (Solic style) */
.input-icon {
  position: relative;
}
.input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
}
.input-icon input {
  padding-left: 38px;
}

/* Remember-me + forgot-password row */
.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 16px;
  font-size: 13px;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: #475569;
  font-weight: 500;
  cursor: pointer;
}
.auth-check input[type="checkbox"] {
  width: auto;
  accent-color: var(--brand);
  margin: 0;
}
.auth-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover {
  text-decoration: underline;
}

/* Primary button treatment (Solic-style uppercase CTA) */
.submit-btn {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(76, 111, 255, 0.25);
}

/* Alerts rendered by layouts.partials.messages (no Bootstrap on these pages) */
.auth-card .alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.auth-card .alert-success {
  background: #f0fdf4;
  color: #16a34a;
}
.auth-card .alert-danger {
  background: #fef2f2;
  color: #dc2626;
}
.auth-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}
.auth-alert-success {
  background: #f0fdf4;
  color: #16a34a;
}
.auth-alert-error {
  background: #fef2f2;
  color: #dc2626;
}

