/* Auth pages — uses theme brand variables */
.auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--primary) 18%, white), transparent 45%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--primary) 22%, white), transparent 40%),
    color-mix(in srgb, var(--primary) 8%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-shell {
  width: min(980px, 100%);
}

.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 28px;
  overflow: hidden;
  background: color-mix(in srgb, var(--white) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 70%, transparent);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--primary) 18%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-form-pane {
  padding: 2.25rem 2.5rem;
  background: color-mix(in srgb, var(--white) 72%, transparent);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}

.auth-brand i {
  font-size: 1.1rem;
}

.auth-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.auth-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

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

.auth-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.auth-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .auth-input {
  padding-right: 3rem;
}

.auth-eye {
  position: absolute;
  right: 0.85rem;
  top: 42%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  cursor: pointer;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.15rem 0 1.25rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  color: var(--badge);
}

.auth-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.auth-btn:hover {
  background: var(--badge);
}

.auth-btn:active {
  transform: scale(0.99);
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}

.auth-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-error {
  color: #c0392b;
  font-size: 0.82rem;
  margin: -0.55rem 0 0.75rem;
}

.auth-alert {
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: var(--badge);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.auth-visual-pane {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 20%, transparent), color-mix(in srgb, var(--badge) 55%, transparent)),
    var(--auth-image) center / cover no-repeat;
}

.auth-visual-quote {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  color: var(--white);
  background: color-mix(in srgb, var(--badge) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 25%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-visual-quote span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.auth-visual-quote strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-visual-pane {
    min-height: 240px;
    order: -1;
  }

  .auth-form-pane {
    padding: 1.75rem 1.4rem 2rem;
  }
}
