@import url("base.css");

/* ==========================================================================
   Auth screens — centered card over a branded gradient split panel.
   ========================================================================== */

.auth-shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  padding: 32px 20px;
}

@media (min-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr 1fr;
    padding: 0;
    min-height: 100vh;
  }
}

.auth-brand-panel {
  display: none;
}

@media (min-width: 900px) {
  .auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 48px;
    background: var(--accent-gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
  }

  .auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(420px circle at 15% 15%, rgba(255,255,255,0.16), transparent 60%),
      radial-gradient(360px circle at 90% 85%, rgba(255,255,255,0.12), transparent 55%);
  }

  .auth-brand-panel > * { position: relative; z-index: 1; }
}

.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}

.auth-brand-mark .mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.auth-brand-copy h2 {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 22ch;
}

.auth-brand-copy p {
  font-size: 14.5px;
  opacity: .92;
  max-width: 40ch;
  margin: 0;
}

.auth-brand-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
}

.auth-brand-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: .95;
}

.auth-brand-list svg { flex-shrink: 0; }

.auth-brand-foot {
  font-size: 12px;
  opacity: .75;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
  padding: 0;
}

.auth-form-wrap .mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}

@media (min-width: 900px) {
  .auth-form-wrap .mobile-brand { display: none; }
}

.auth-form-wrap .mobile-brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.auth-card {
  padding: 32px 30px 30px;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-card .auth-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-form .field-inline-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-form .field-inline-link a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}
.auth-form .field-inline-link a:hover { text-decoration: underline; }

.password-field { position: relative; }
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
}
.password-toggle:hover { color: var(--text); }

.auth-submit { margin-top: 4px; }

.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.auth-foot a { color: var(--accent); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.auth-back:hover { color: var(--text); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.checkbox-row input { width: auto; margin-top: 2px; }
.checkbox-row a { color: var(--accent); font-weight: 600; }

.field-error {
  font-size: 12px;
  color: var(--danger);
}

.field.has-error input {
  border-color: var(--danger);
}
