:root{
  --auth-bg: #f5f6f8;
  --auth-card: #ffffff;
  --auth-border: #e6e8ee;
  --auth-text: #111827;
  --auth-muted: #6b7280;
  --auth-green: #198754;
  --auth-radius: 16px;
  --auth-shadow: 0 12px 35px rgba(17,24,39,.10);
}

/* help Django default widgets if they don't have classes */
.auth-card input[type="email"],
.auth-card input[type="text"],
.auth-card input[type="password"]{
  width: 100%;
}

.auth-card input{
  border-radius: 12px;
  border: 1px solid #e6e8ee;
  padding: 12px 14px;
  background: #fafbfc;
}

.auth-wrap{
  min-height: calc(100vh - 92px);
  flex: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  padding-bottom: 0;
  background: var(--auth-bg);
  position: relative;
  overflow: hidden;
}
.auth-wrap::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35vh;
  background: url('/static/img/Group 2.svg') no-repeat bottom center;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
}
.auth-wrap > *{
  position: relative;
  z-index: 1;
}
.auth-cloud{
  position: absolute;
  width: 280px;
  height: auto;
  top: 18px;
  z-index: 0;
  opacity: .7;
  pointer-events: none;
}
.auth-cloud-left{
  left: 8%;
}
.auth-cloud-right{
  right: 8%;
  transform: scaleX(-1);
}
@media (max-width: 767.98px){
  .auth-cloud{ width: 140px; top: 10px; }
  .auth-cloud-left{ left: 5%; }
  .auth-cloud-right{ right: 5%; }
}

.auth-card{
  width: 100%;
  max-width: 560px;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

.auth-card-header{
  padding: 18px 22px;
  border-bottom: 1px solid var(--auth-border);
  background: #fff;
}

.auth-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 28px;
  color: var(--auth-text);
}

.auth-subtitle{
  margin: 6px 0 0 0;
  color: var(--auth-muted);
  font-weight: 600;
  font-size: 14px;
}

.auth-card-body{
  padding: 22px;
}

@media (max-width: 575.98px){
  .auth-card-header, .auth-card-body{ padding: 16px; }
  .auth-wrap{ padding: 10px; padding-bottom: 0; min-height: calc(100vh - 82px); }
}

/* Form grid */
.auth-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.auth-grid.two{
  grid-template-columns: 1fr;
}

@media (min-width: 768px){
  .auth-grid.two{
    grid-template-columns: 1fr 1fr;
  }
}

.auth-field label{
  display: block;
  font-weight: 800;
  color: var(--auth-text);
  margin-bottom: 6px;
  font-size: 13px;
}

.auth-input{
  border-radius: 12px !important;
  border: 1px solid var(--auth-border) !important;
  padding: 12px 14px !important;
  background: #fafbfc !important;
}

.auth-input:focus{
  background: #fff !important;
  border-color: rgba(25,135,84,.45) !important;
  box-shadow: 0 0 0 .2rem rgba(25,135,84,.18) !important;
}

.auth-error{
  margin-top: 6px;
  color: #b42318;
  font-weight: 700;
  font-size: 12px;
}

.auth-alert{
  border: 1px solid #f2c2c2;
  background: #fff5f5;
  color: #991b1b;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* CTA */
.auth-actions{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.auth-btn{
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 24px rgba(25,135,84,.16);
  transition: transform .15s ease, box-shadow .15s ease;
}

.auth-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(25,135,84,.20);
}

.auth-links{
  text-align: center;
  color: var(--auth-muted);
  font-weight: 650;
  margin-top: 12px;
}

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

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

.auth-social-block{
  margin-bottom: 16px;
}

.auth-social-block .btn{
  border-radius: 12px;
  font-weight: 700;
  padding: 10px 14px;
}

.auth-divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--auth-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
}

.auth-divider::before,
.auth-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}