/* Auth — nền / banner dùng bg.svg + bg-hd.png */
.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: #1a1c1b;
  font-family: "Roboto", system-ui, sans-serif;
  font-optical-sizing: auto;
  background-color: #f7f3ef;
  background-image:
    linear-gradient(180deg, rgba(247, 243, 239, .94), rgba(243, 232, 224, .92)),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(153, 27, 27, .08), transparent 55%),
    url("/images/brand/bg.svg");
  background-size: auto, auto, min(900px, 140vw);
  background-position: center, center, center -5%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.5rem;
  background-color: #7f1d1d;
  background-image:
    linear-gradient(100deg, rgba(69, 10, 10, .88), rgba(127, 29, 29, .72) 50%, rgba(153, 27, 27, .8)),
    url("/images/brand/bg-hd.png");
  background-size: auto, cover;
  background-position: center, center 35%;
  background-repeat: no-repeat;
  border-bottom: 2px solid #d4af37;
  box-shadow: 0 4px 16px rgba(69, 10, 10, .22);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.auth-brand__logo { height: 32px; width: auto; }

.auth-help {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
}
.auth-help:hover { background: rgba(255,255,255,.22); color: #fff; }

.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 2rem;
}

.auth-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  text-align: center;
  padding: .85rem 1.5rem 1.25rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #a1a1aa;
}
.auth-foot a { color: #71717a; text-decoration: none; }
.auth-foot a:hover { color: #8f1419; }

.login-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(127, 29, 29, .08);
  box-shadow: 0 18px 50px rgba(80, 10, 10, .12), 0 2px 8px rgba(0,0,0,.04);
  min-height: 520px;
}

@media (min-width: 860px) {
  .login-shell { grid-template-columns: 1.05fr 1fr; }
}

.login-brand {
  position: relative;
  background-color: #7f1d1d;
  background-image:
    linear-gradient(160deg, rgba(120, 15, 18, .82), rgba(70, 8, 10, .88)),
    url("/images/brand/bg-hd.png");
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.login-brand::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("/images/brand/bg.svg") center / min(640px, 120%) no-repeat;
  opacity: .18;
  pointer-events: none;
  mix-blend-mode: screen;
}

.login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(248, 184, 5, .18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}

.login-brand__inner { position: relative; z-index: 1; max-width: 22rem; }

.login-emblem {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8e7b0, #d4af37 55%, #b8860b);
  padding: 2px;
  margin-bottom: 1.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.login-emblem__inner {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0, #f3e2b0);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.login-emblem img {
  width: 78%;
  height: auto;
  object-fit: contain;
  display: block;
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.login-brand__rule {
  width: 2.75rem;
  height: 2px;
  background: linear-gradient(90deg, #f5c542, transparent);
  border-radius: 999px;
  margin: 1rem 0 .9rem;
}

.login-brand p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: .95rem;
  line-height: 1.55;
}

.login-panel {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.login-panel h2 {
  margin: 0 0 .35rem;
  font-size: 1.45rem;
  font-weight: 900;
  color: #1c1917;
  letter-spacing: -.02em;
}

.login-panel .sub {
  margin: 0 0 1.25rem;
  color: #78716c;
  font-size: .9rem;
}

.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #71717a;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 46px;
  padding: 0 .75rem 0 .85rem;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-shell:focus-within {
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .12);
}
.input-shell .material-symbols-outlined {
  color: #a1a1aa;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.input-shell input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .95rem;
  outline: none;
  padding: 0;
}
.input-shell .toggle-pass {
  border: 0;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: .25rem;
  border-radius: 8px;
}
.input-shell .toggle-pass:hover { color: #991b1b; background: #fef2f2; }

.field-error {
  display: block;
  margin-top: .3rem;
  color: #b91c1c;
  font-size: .8rem;
  font-weight: 600;
}

.validation-summary {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  font-weight: 600;
}
.validation-summary:empty,
.validation-summary.validation-summary-valid { display: none; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin: .2rem 0 1.15rem;
  font-size: .88rem;
}
.auth-row a {
  color: #991b1b;
  font-weight: 700;
  text-decoration: none;
}
.auth-row a:hover { text-decoration: underline; }
.auth-row .check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: #3f3f46;
  margin: 0;
}
.auth-row .check input {
  margin: 0;
  accent-color: #8f1419;
  width: 1.05rem;
  height: 1.05rem;
}

.btn-login-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(127, 29, 29, .28);
}
.btn-login-main:hover { filter: brightness(1.05); }

.login-register-hint {
  margin: 1.35rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid #f4f4f5;
  text-align: center;
  color: #71717a;
  font-size: .88rem;
  line-height: 1.45;
}

@media (max-width: 859px) {
  .login-brand { min-height: 200px; padding: 1.75rem 1.5rem; }
  .login-panel { padding: 1.65rem 1.35rem 1.85rem; }
}
