/* Login page (layout-based) */

.auth-page{
  display: grid;
  place-items: center;
  padding: 28px 0 10px;
}

.auth-card{
  width: 100%;
  max-width: 460px;
  padding: 0; /* slbs-card adds padding, we want header/body separation */
  overflow: hidden;
}

.auth-head{
  padding: 8px 24px 18px;
  background: linear-gradient(135deg, rgba(56,83,164,.10), rgba(240,235,30,.10));
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.auth-brand{
  display: block; /* overridden by --stacked anyway */
}


.auth-brand__logo{
  width: 90px;
  height: 90px;
  display: block;
}

/* Brand stacked + centered */
.auth-brand--stacked{
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.auth-brand__logo--wide{
  width: min(300px, 92%);
  height: auto;
  display: block;
}

/* Centered brand text under logo */
.auth-brand__text--center{
  text-align: center;
}

.auth-brand__name{
  font-weight: 900;
  letter-spacing: .25px;
  font-size: 16px;
  text-transform: uppercase;
  color: rgba(15,23,42,.90);
}

.auth-brand__tag{
  font-size: 13px;
  color: rgba(15,23,42,.62);
  margin-top: 3px;
}

.auth-body{
  padding: 20px 22px 22px;
}

.auth-title{
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.4px;
}

.auth-subtitle{
  margin: 0 0 16px;
  color: rgba(15,23,42,.65);
  font-size: 13px;
}

.auth-form{
  display: grid;
  gap: 14px;
}

.field__label{
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.75);
  margin-bottom: 6px;
}

.field__row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.field input.field__input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.95);
  font-size: 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.field input.field__input:focus{
  border-color: rgba(56,83,164,.55);
  box-shadow: 0 0 0 4px rgba(56,83,164,.14);
}

.btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 14px;
}

.btn--primary{
  color: #fff;
  background: linear-gradient(135deg, #3853A4, #1b2d6b);
  box-shadow: 0 14px 30px rgba(56,83,164,.28);
}

.btn--primary:hover{ filter: brightness(1.02); }

.link{
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link--muted{
  color: rgba(15,23,42,.60);
  font-size: 12px;
  text-decoration-color: rgba(15,23,42,.25);
}

.auth-foot{
  margin-top: 8px;
}

.muted{
  color: rgba(15,23,42,.65);
  font-size: 12px;
}

/* Prevent Cake form wrapper spacing surprises */
.auth-form .input{ margin: 0; }
