/*
 * Website customer sign-in pages (12 Nov 2026):
 * login, signup, forgot password, OTP, change password.
 * Everything is scoped under .vauth so the theme is not affected.
 */
.vauth {
  --va-brand: #ad0101;
  --va-brand-dark: #7d0000;
  --va-gold: #d4af37;
  --va-ink: #111827;
  --va-text: #374151;
  --va-muted: #6b7280;
  --va-line: #e5e7eb;
  --va-field: #f9fafb;
  --va-bg: #f4f5f8;
  --va-good: #15803d;
  --va-bad: #b91c1c;
  padding: 48px 0 64px;
  background: radial-gradient(1200px 400px at 50% -120px, rgba(173, 1, 1, .07), transparent 70%), var(--va-bg);
  color: var(--va-text);
}
.vauth * { box-sizing: border-box; }

/* Card */
.vauth__card {
  max-width: 440px; margin: 0 auto; background: #fff; border-radius: 18px;
  border: 1px solid var(--va-line);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px rgba(17, 24, 39, .08);
  padding: 36px 34px 30px;
}
.vauth__card--wide { max-width: 980px; padding: 0; overflow: hidden; }
.vauth__logo { text-align: center; margin-bottom: 18px; }
.vauth__logo img { height: 52px; border-radius: 8px; }
.vauth__icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(173, 1, 1, .08); color: var(--va-brand);
}
.vauth__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vauth__title { font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--va-ink); text-align: center; margin: 0 0 6px; }
.vauth__subtitle { font-size: 14px; line-height: 1.5; color: var(--va-muted); text-align: center; margin: 0 0 24px; }
.vauth__subtitle strong { color: var(--va-ink); }

/* Alerts */
.vauth__alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; margin-bottom: 18px; }
.vauth__alert svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }
.vauth__alert--ok { background: #ecfdf3; color: var(--va-good); border: 1px solid #bbf7d0; }
.vauth__alert--err { background: #fef2f2; color: var(--va-bad); border: 1px solid #fecaca; }

/* Fields */
.vauth__field { margin-bottom: 16px; position: relative; }
.vauth__label { display: block; font-size: 13px; font-weight: 600; color: var(--va-text); margin-bottom: 6px; }
.vauth__label .req { color: var(--va-brand); }
.vauth__label small { font-weight: 500; color: var(--va-muted); }
.vauth__control { position: relative; }
.vauth__control > svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px;
  fill: none; stroke: #9ca3af; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.vauth__input, .vauth select.vauth__input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--va-line); border-radius: 10px;
  background: var(--va-field); font-size: 15px; color: var(--va-ink); transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none; margin: 0;
}
.vauth select.vauth__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.vauth__control > svg ~ .vauth__input { padding-left: 42px; }
.vauth__input::placeholder { color: #9ca3af; }
.vauth__input:focus { outline: none; border-color: var(--va-brand); background: #fff; box-shadow: 0 0 0 4px rgba(173, 1, 1, .1); }
.vauth__input.is-invalid, .vauth .error + .vauth__input { border-color: var(--va-bad); }
.vauth__eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none;
  border-radius: 8px; color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.vauth__eye:hover { color: var(--va-ink); background: #f3f4f6; }
.vauth__eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vauth__control--pw .vauth__input { padding-right: 48px; }
.vauth__hint { display: block; font-size: 12px; color: var(--va-muted); margin-top: 6px; }
.vauth .error { color: var(--va-bad); font-size: 12px; padding: 4px 0 0; }
.vauth__msg { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; min-height: 16px; }
.vauth__msg.is-ok { color: var(--va-good); }
.vauth__msg.is-bad { color: var(--va-bad); }

/* Password strength */
.vauth__meter { display: flex; gap: 4px; margin-top: 8px; }
.vauth__meter span { flex: 1; height: 4px; border-radius: 4px; background: var(--va-line); transition: background .2s; }
.vauth__meter[data-level="1"] span:nth-child(-n+1) { background: #ef4444; }
.vauth__meter[data-level="2"] span:nth-child(-n+2) { background: #f59e0b; }
.vauth__meter[data-level="3"] span:nth-child(-n+3) { background: #84cc16; }
.vauth__meter[data-level="4"] span { background: var(--va-good); }

/* OTP */
.vauth__otp { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 12px; padding-left: 26px !important; height: 58px; }

/* Rows, buttons, links */
.vauth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 20px; font-size: 13px; }
.vauth__row a, .vauth__link { color: var(--va-brand); font-weight: 600; }
.vauth__row a:hover, .vauth__link:hover { color: var(--va-ink); text-decoration: underline; }
.vauth__check { display: flex; align-items: flex-start; gap: 10px; color: var(--va-text); font-size: 13px; line-height: 1.5; cursor: pointer; margin: 0; font-weight: 500; }
.vauth__check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--va-brand); flex: 0 0 18px; }
.vauth__btn {
  width: 100%; height: 50px; border-radius: 10px; background: var(--va-brand); color: #fff !important; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 16px rgba(173, 1, 1, .22); transition: background .15s, transform .1s, box-shadow .15s;
}
.vauth__btn:hover { background: var(--va-brand-dark); }
.vauth__btn:active { transform: translateY(1px); }
.vauth__btn:disabled { background: #d1d5db; box-shadow: none; cursor: not-allowed; }
.vauth__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vauth__divider { display: flex; align-items: center; gap: 12px; color: #9ca3af; font-size: 12px; margin: 22px 0 16px; text-transform: uppercase; letter-spacing: .06em; }
.vauth__divider::before, .vauth__divider::after { content: ""; flex: 1; height: 1px; background: var(--va-line); }
.vauth__btn--ghost {
  background: #fff; color: var(--va-ink) !important; border: 1px solid var(--va-line); box-shadow: none;
}
.vauth__btn--ghost:hover { background: #f9fafb; border-color: #d1d5db; }
.vauth__footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--va-muted); }
.vauth__footer a { color: var(--va-brand); font-weight: 700; }
.vauth__footer a:hover { color: var(--va-ink); }
.vauth__trust { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--va-muted); }
.vauth__trust span { display: inline-flex; align-items: center; gap: 6px; }
.vauth__trust svg { width: 14px; height: 14px; fill: none; stroke: var(--va-good); stroke-width: 2; }

/* ---- Registration (wide) ---- */
.vauth__split { display: grid; grid-template-columns: 300px 1fr; }
.vauth__aside {
  background: linear-gradient(160deg, #1a0000 0%, #4a0000 55%, #ad0101 100%); color: #fff; padding: 36px 28px;
  position: relative; overflow: hidden;
}
.vauth__aside::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%;
  border: 40px solid rgba(212, 175, 55, .12);
}
.vauth__aside img { height: 46px; border-radius: 8px; margin-bottom: 26px; }
.vauth__aside h2 { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; }
.vauth__aside p { color: rgba(255, 255, 255, .75); font-size: 14px; line-height: 1.55; margin: 0 0 24px; }
.vauth__steps { list-style: none; margin: 0 0 26px; padding: 0; position: relative; z-index: 1; }
.vauth__steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; font-size: 14px; color: rgba(255, 255, 255, .9); }
.vauth__steps b {
  flex: 0 0 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.vauth__steps small { display: block; color: rgba(255, 255, 255, .6); font-size: 12px; }
.vauth__note { position: relative; z-index: 1; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; }
.vauth__note a { color: var(--va-gold); font-weight: 700; }

.vauth__main { padding: 34px 36px 30px; }
.vauth__main .vauth__title, .vauth__main .vauth__subtitle { text-align: left; }
.vauth__section { border: 1px solid var(--va-line); border-radius: 14px; padding: 20px 20px 4px; margin-bottom: 18px; }
.vauth__section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.vauth__section-head b {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(173, 1, 1, .08); color: var(--va-brand);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.vauth__section-head h3 { font-size: 16px; font-weight: 700; color: var(--va-ink); margin: 0; }
.vauth__section-head span { font-size: 12px; color: var(--va-muted); margin-left: auto; }
.vauth__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 14px; }
.vauth__grid > .c3 { grid-column: span 3; }
.vauth__grid > .c4 { grid-column: span 4; }
.vauth__grid > .c6 { grid-column: span 6; }
.vauth__grid > .c12 { grid-column: span 12; }

/* File upload */
.vauth__file { position: relative; }
.vauth__file input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.vauth__drop {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1.5px dashed #d1d5db; border-radius: 10px;
  background: var(--va-field); transition: border-color .15s, background .15s;
}
.vauth__file:hover .vauth__drop, .vauth__file input:focus + .vauth__drop { border-color: var(--va-brand); background: #fff; }
.vauth__drop svg { flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: #fff; border: 1px solid var(--va-line); fill: none; stroke: var(--va-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vauth__drop strong { display: block; font-size: 14px; color: var(--va-ink); font-weight: 600; word-break: break-all; }
.vauth__drop small { display: block; font-size: 12px; color: var(--va-muted); }
.vauth__file.has-file .vauth__drop { border-style: solid; border-color: #86efac; background: #f0fdf4; }
.vauth__file.has-file .vauth__drop svg { stroke: var(--va-good); }
.vauth__file.is-bad .vauth__drop { border-color: #fca5a5; background: #fef2f2; }

.vauth__submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.vauth__submit .vauth__btn { width: auto; min-width: 220px; padding: 0 28px; }

@media (max-width: 991px) {
  .vauth__split { grid-template-columns: 1fr; }
  .vauth__aside { padding: 26px 22px; }
  .vauth__steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0; }
  .vauth__steps li { padding: 4px 10px 4px 4px; background: rgba(255, 255, 255, .08); border-radius: 20px; font-size: 13px; }
  .vauth__steps small, .vauth__note { display: none; }
  .vauth__aside p { margin-bottom: 16px; }
}
@media (max-width: 767px) {
  .vauth { padding: 20px 0 40px; }
  .vauth .container { padding-left: 16px; padding-right: 16px; }
  .vauth__card { padding: 26px 20px 22px; border-radius: 16px; }
  .vauth__card--wide { padding: 0; }
  .vauth__main { padding: 22px 16px 20px; }
  .vauth__section { padding: 16px 14px 2px; }
  .vauth__grid > .c3, .vauth__grid > .c4, .vauth__grid > .c6 { grid-column: span 12; }
  .vauth__submit .vauth__btn { width: 100%; }
  .vauth__title { font-size: 22px; }
}

/* Width fix (12 Nov 2026): the theme's .main / section rules could shrink
   the page; keep the sign-in pages full width and the registration card wide. */
.main > .vauth { display: block; width: 100%; flex: 1 1 100%; }
.vauth > .container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.vauth__card { width: 100%; }
.vauth__card--wide { max-width: 1140px; }
.vauth__split { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
.vauth__main, .vauth__grid > * { min-width: 0; }
.vauth__input, .vauth select.vauth__input { max-width: none; width: 100% !important; }
.vauth .form-control { width: 100%; }
@media (max-width: 991px) {
  .vauth__split { grid-template-columns: minmax(0, 1fr); }
}
