/* ====== Base page ====== */
:root{
  --brand: #1670ff;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --bg: #f4f7ff;
  --shadow: 0 30px 70px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

html, body { height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% 10%, #ffffff 0%, var(--bg) 55%, #eef2ff 100%);
  color: var(--text);
}

/* ====== Auth layout wrapper ====== */
.auth-wrap{
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: 40px 18px;
}

.auth-card{
  width: 100%;
  max-width: 900px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 54px 54px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Make the inner form area a comfortable width like your login */
.auth-inner{
  max-width: 640px;
  margin: 0 auto;
}

/* ====== Headings ====== */
.auth-title{
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  text-align: center;
  font-weight: 800;
}

.auth-subtitle{
  margin: 0 0 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

/* ====== Form rows (label left, input right) ====== */
.auth-form{
  margin-top: 10px;
}

.auth-field{
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}

.auth-field label{
  color: var(--muted);
  font-size: 15px;
  text-align: right;
  margin: 0;
}

/* THE IMPORTANT PART:
   Style *any* input rendered inside auth forms, whether it comes from {{ form.field }}
   or from manual <input>. */
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="number"],
.auth-form input[type="url"],
.auth-form input[type="search"],
.auth-form select,
.auth-form textarea{
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #eaf1ff;              /* light blue like your login */
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.auth-form textarea{
  height: auto;
  padding: 12px 16px;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus{
  border-color: rgba(22, 112, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(22, 112, 255, 0.20);
  background: #edf4ff;
}

/* ====== Buttons ====== */
.auth-actions{
  margin-top: 22px;
}

.auth-btn{
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(22, 112, 255, 0.25);
  transition: transform .05s ease, filter .15s ease;
}

.auth-btn:hover{ filter: brightness(0.98); }
.auth-btn:active{ transform: translateY(1px); }

/* ====== Links row ====== */
.auth-links{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.auth-links a{
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover{
  text-decoration: underline;
}

/* ====== Messages / errors ====== */
.auth-error{
  background: #fff1f2;
  border: 1px solid rgba(190, 18, 60, 0.25);
  color: #9f1239;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 14px 0 10px 0;
}

.helptext{
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.25;
}

/* ====== Responsive ====== */
@media (max-width: 720px){
  .auth-card{ padding: 34px 18px; }
  .auth-title{ font-size: 34px; }

  .auth-field{
    grid-template-columns: 1fr;
  }
  .auth-field label{
    text-align: left;
  }
}
