/* ==========================================================================
   M.B.A Barbers — authentication
   Split layout: a brand panel carrying the badge motif on the left, the form
   on the right. Collapses to a single column with the brand panel reduced to
   a slim header strip on small screens.
   ========================================================================== */

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth__brand {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, var(--navy) 0 68%, var(--navy-deep) 68% 100%);
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem);
}
/* the split red wedge that echoes the logo badge */
.auth__brand::before {
  content: ''; position: absolute; inset: 0 0 0 auto; width: 34%;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .92;
}
.auth__brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(112deg, rgba(255,255,255,.045) 0 2px, transparent 2px 26px);
}
.auth__brand > * { position: relative; z-index: 1; }

.auth__logo { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.auth__logo img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.auth__logo b { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; line-height: 1.1; }
.auth__logo span { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .72; margin-top: .18rem; }

.auth__pitch { margin-top: auto; }
.auth__pitch h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.01em; margin-bottom: .9rem; }
.auth__pitch p { font-size: 1rem; line-height: 1.65; opacity: .82; max-width: 42ch; }

.auth__points { display: grid; gap: .85rem; margin-top: 1.75rem; }
.auth__points li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .75rem; align-items: start; font-size: .9rem; line-height: 1.5; }
.auth__points svg { width: 20px; height: 20px; color: #fff; margin-top: 2px; opacity: .95; }
.auth__points b { display: block; }
.auth__points span { opacity: .74; font-size: .84rem; }

.auth__stats { display: flex; gap: clamp(1.25rem, 3vw, 2.25rem); flex-wrap: wrap; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); }
.auth__stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.auth__stat span { display: block; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-top: .3rem; }

/* ---- form side ---- */
.auth__panel { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper, #fff); }
.auth__card { width: 100%; max-width: 27rem; }
.auth__card--wide { max-width: 34rem; }

.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.auth__back { font-size: .82rem; font-weight: 600; color: var(--ink-400); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.auth__back:hover { color: var(--navy); }
.auth__back svg { width: 15px; height: 15px; }

.auth__title { font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.15; margin-bottom: .5rem; }
.auth__sub { font-size: .93rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.6rem; }
.auth__sub a { color: var(--navy); font-weight: 600; }

.auth__form { display: grid; gap: 1rem; }
.auth__row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.auth__form .btn--block { margin-top: .35rem; }

.auth__pw { position: relative; }
.auth__pw .input { padding-right: 2.9rem; }
.auth__pw button {
  position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 8px; color: var(--ink-400); cursor: pointer;
}
.auth__pw button:hover { background: var(--surface); color: var(--navy); }
.auth__pw button svg { width: 17px; height: 17px; }
.auth__pw button.is-on { color: var(--navy); }

.auth__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.auth__meta a { font-size: .84rem; font-weight: 600; color: var(--navy); }
.auth__meta a:hover { color: var(--red); }

.auth__or { display: flex; align-items: center; gap: .85rem; margin: 1.25rem 0; color: var(--text-subtle); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

.auth__alts { display: grid; gap: .6rem; }
.auth__alt {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem;
  border: 1px solid var(--hairline); border-radius: var(--r-md); background: #fff;
  font-size: .87rem; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.auth__alt:hover { border-color: var(--navy); background: rgba(7,48,124,.03); }
.auth__alt svg { width: 18px; height: 18px; flex: none; }
.auth__alt small { margin-left: auto; font-weight: 500; color: var(--text-subtle); }

.auth__foot { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); font-size: .85rem; color: var(--text-muted); text-align: center; }
.auth__foot a { color: var(--navy); font-weight: 600; }

.auth__legal { font-size: .8rem; line-height: 1.6; color: var(--text-subtle); margin-top: 1rem; }
.auth__legal a { color: var(--navy); font-weight: 600; }

/* role picker on register */
.auth__roles { display: grid; gap: .6rem; margin-bottom: 1.25rem; }
.auth__role {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .75rem; align-items: start;
  padding: .85rem .95rem; border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: #fff; cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.auth__role:hover { border-color: var(--ink-300); }
.auth__role:has(input:checked) { border-color: var(--navy); background: rgba(7,48,124,.04); box-shadow: inset 0 0 0 1px var(--navy); }
.auth__role input { margin-top: 2px; accent-color: var(--navy); width: 17px; height: 17px; }
.auth__role b { display: block; font-size: .9rem; color: var(--ink); }
.auth__role span { display: block; font-size: .79rem; color: var(--text-subtle); line-height: 1.5; margin-top: .12rem; }

.auth__pwbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: .4rem; }
.auth__pwbar i { height: 3px; border-radius: 2px; background: var(--ink-200); transition: background-color var(--t-base) var(--ease); }
.auth__pwbar.s1 i:nth-child(1) { background: #D68A14; }
.auth__pwbar.s2 i:nth-child(-n+2) { background: #D68A14; }
.auth__pwbar.s3 i:nth-child(-n+3) { background: var(--success); }
.auth__pwbar.s4 i { background: var(--success); }
.auth__pwtxt { font-size: .74rem; color: var(--text-subtle); margin-top: .3rem; }

.auth__otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.auth__otp input {
  width: 100%; text-align: center; font-family: var(--font-display); font-size: 1.35rem;
  padding: .7rem 0; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: #fff;
}
.auth__otp input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }

.auth__sent { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: rgba(7,48,124,.05); border: 1px solid rgba(7,48,124,.16); margin-bottom: 1.35rem; }
.auth__sent svg { width: 20px; height: 20px; color: var(--navy); flex: none; margin-top: 2px; }
.auth__sent b { display: block; font-size: .9rem; color: var(--ink); }
.auth__sent span { display: block; font-size: .82rem; color: var(--text-muted); line-height: 1.55; margin-top: .15rem; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__brand { padding: 1.25rem 1.35rem; gap: 1rem; }
  .auth__brand::before { width: 46%; clip-path: polygon(52% 0, 100% 0, 100% 100%, 22% 100%); }
  .auth__pitch, .auth__points, .auth__stats { display: none; }
  .auth__logo b { font-size: 1rem; }
  .auth__logo img { width: 42px; height: 42px; }
  .auth__panel { padding: 1.75rem 1.35rem 3rem; align-items: start; }
}
@media (max-width: 520px) {
  .auth__row2 { grid-template-columns: minmax(0, 1fr); }
  .auth__otp { grid-template-columns: repeat(3, 1fr); }
}
