/* =====================================================
   AUTH FLOW
   Login / Register
===================================================== */

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: linear-gradient(180deg, #f6f3fb 0%, #f8fafc 100%);
}

footer,
.footer,
.site-footer {
  display: none !important;
}

.login-page {
  min-height: calc(100vh - 96px);
  padding: 48px 20px 64px;
}

.auth-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.auth-panel {
  background: #ffffff;
  border: 1px solid #ece7f5;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(59, 49, 74, 0.12);
  overflow: hidden;
}

.auth-panel--split {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1fr);
}

.auth-intro {
  padding: 44px 40px;
  background: linear-gradient(135deg, #3b314a 0%, #5b3ea8 100%);
  color: #fff;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f5f3ff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.auth-title {
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.06;
  margin: 0 0 14px 0;
  letter-spacing: -0.03em;
}

.auth-lead {
  margin: 0 0 24px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
}

.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.auth-benefits li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}

.auth-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fca5a5;
  box-shadow: 0 0 0 6px rgba(252, 165, 165, 0.18);
}

.auth-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.auth-card__header {
  margin-bottom: 20px;
}

.auth-card__header h2 {
  margin: 0 0 8px 0;
  font-size: 2rem;
  line-height: 1.1;
  color: #111827;
}

.auth-card__header p {
  margin: 0;
  color: #6b7280;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  color: #374151;
  padding: 0;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 700;
  pointer-events: auto;
  user-select: auto;
}

.form-row.is-username label {
  font-size: 0.95rem;
  padding-right: 0;
}

.form-row label::before,
.form-row.valid label::after,
.form-row.invalid label::after {
  content: none;
}

.form-row input,
.form-row select {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 1px solid #d8dce6;
  background: #f8fafc;
  color: #111827;
  font-size: 1rem;
  padding: 0 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-row select {
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #8b5cf6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form-row.error input,
.form-row.error select,
.form-row.invalid input,
.form-row.invalid select {
  border-color: #f43f5e;
  background: #fff1f2;
}

.form-row.success input,
.form-row.success select,
.form-row.valid input,
.form-row.valid select {
  border-color: #10b981;
  background: #f0fdf4;
}

.form-message {
  min-height: 18px;
  font-size: 13px;
  color: #be123c;
}

.form-actions {
  margin-top: 8px;
}

.login-btn {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b314a 0%, #6d28d9 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  box-shadow: 0 18px 36px rgba(59, 49, 74, 0.24);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 22px 42px rgba(59, 49, 74, 0.3);
}

.login-btn span {
  font-size: 1.1rem;
}

.login-error,
.login-success {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.login-error {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.login-success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.auth-card__footer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #6b7280;
  font-size: 0.95rem;
}

.auth-card__footer a {
  color: #5b21b6;
  font-weight: 700;
  text-decoration: none;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .login-page {
    padding: 28px 14px 40px;
  }

  .auth-panel--split {
    grid-template-columns: 1fr;
  }

  .auth-intro,
  .auth-card {
    padding: 28px 22px;
  }

  .auth-title {
    font-size: 2rem;
  }
}
