/* ===========================================================
   USM Car Parts — Login / Signup pages
   Scoped under .usm-auth so nothing else on the site is affected.
   Fonts inherited from style.css (Outfit / Roboto).
   =========================================================== */

.usm-auth {
  --usm-accent: var(--theme-color, #F05A28);
  --usm-ink: #111111;
  --usm-muted: #6A6A6A;
  --usm-line: #e4e4e8;
  --usm-soft: #f6f7f9;
  --usm-ease: cubic-bezier(.22, .61, .36, 1);
  position: relative;
  padding: 70px 0 90px !important;
  background:
    radial-gradient(760px 380px at 12% 0%, rgba(240, 90, 40, .10) 0%, rgba(240, 90, 40, 0) 68%),
    linear-gradient(180deg, var(--usm-soft) 0%, #ffffff 60%);
  overflow: hidden;
}

/* faint diagonal texture */
.usm-auth:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg,
      rgba(17, 17, 17, .022) 0px,
      rgba(17, 17, 17, .022) 1px,
      transparent 1px,
      transparent 9px);
  pointer-events: none;
}

.usm-auth .auto-container {
  position: relative;
  z-index: 1;
}

/* ---------- the split card ---------- */
.usm-auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--usm-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 17, 17, .12);
}

/* ---------- left: brand panel ---------- */
.usm-auth-aside {
  position: relative;
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(520px 260px at 20% 8%, rgba(240, 90, 40, .30) 0%, rgba(240, 90, 40, 0) 65%),
    linear-gradient(150deg, #121216 0%, #1c1a1e 55%, #2b1c14 100%);
  overflow: hidden;
}

.usm-auth-aside:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .04);
  pointer-events: none;
}

.usm-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--usm-accent);
  background: rgba(240, 90, 40, .14);
  border: 1px solid rgba(240, 90, 40, .3);
  padding: 7px 13px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.usm-auth-aside h3 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.usm-auth-aside p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .68);
  font-size: 15px;
  line-height: 26px;
  margin-bottom: 28px;
}

.usm-auth-points {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usm-auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(255, 255, 255, .85);
  padding: 9px 0;
}

.usm-auth-points li i {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(240, 90, 40, .16);
  border: 1px solid rgba(240, 90, 40, .3);
  color: var(--usm-accent);
  font-size: 14px;
}

/* ---------- right: form panel ---------- */
.usm-auth-main {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.usm-auth-main .usm-auth-head {
  margin-bottom: 28px;
}

.usm-auth-main .usm-auth-head h2 {
  font-size: 28px;
  line-height: 38px;
  letter-spacing: -.5px;
  color: var(--usm-ink);
  margin-bottom: 8px;
}

.usm-auth-main .usm-auth-head p {
  font-size: 15px;
  line-height: 24px;
  color: var(--usm-muted);
  margin: 0;
}

/* ---------- fields ---------- */
.usm-auth .form-inner {
  padding: 0;
  background: none;
  box-shadow: none;
}

.usm-auth .form-group {
  position: relative;
  margin-bottom: 18px;
}

.usm-auth .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--usm-ink);
  margin-bottom: 8px;
}

.usm-auth .form-group input[type="text"],
.usm-auth .form-group input[type="email"],
.usm-auth .form-group input[type="password"] {
  width: 100%;
  height: 52px;
  padding: 0 62px 0 44px;
  background: var(--usm-soft);
  border: 1px solid var(--usm-line);
  border-radius: 10px;
  font-size: 15px;
  color: var(--usm-ink);
  transition: border-color .3s var(--usm-ease), background .3s var(--usm-ease), box-shadow .3s var(--usm-ease);
}

.usm-auth .form-group input::placeholder {
  color: #a4a4ac;
}

.usm-auth .form-group input:focus {
  outline: none;
  background: #fff;
  border-color: var(--usm-accent);
  box-shadow: 0 0 0 4px rgba(240, 90, 40, .12);
}

/* leading icon */
.usm-auth .form-group .usm-field-icon {
  position: absolute;
  left: 15px;
  top: 44px;
  font-size: 16px;
  color: #9a9aa2;
  pointer-events: none;
  transition: color .3s var(--usm-ease);
}

.usm-auth .form-group:focus-within .usm-field-icon {
  color: var(--usm-accent);
}

/* password reveal */
.usm-auth .usm-toggle-pw {
  position: absolute;
  right: 8px;
  top: 34px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9a9aa2;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color .3s var(--usm-ease), background .3s var(--usm-ease);
}

.usm-auth .usm-toggle-pw:hover {
  color: var(--usm-accent);
  background: rgba(240, 90, 40, .08);
}

/* ---------- options row ---------- */
.usm-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.usm-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--usm-muted);
  cursor: pointer;
  margin: 0;
}

.usm-auth-remember input {
  width: 17px;
  height: 17px;
  accent-color: var(--usm-accent);
  cursor: pointer;
}

.usm-auth-forgot {
  font-size: 14px;
  font-weight: 600;
  color: var(--usm-accent);
  transition: opacity .3s var(--usm-ease);
}

.usm-auth-forgot:hover {
  opacity: .78;
}

/* ---------- submit ---------- */
.usm-auth .message-btn {
  margin-bottom: 22px;
}

/* base .theme-btn is white on white text — force the accent fill */
.usm-auth .message-btn .theme-btn {
  background: var(--usm-accent) !important;
  border: 0;
  width: 100%;
  padding: 15px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 12px 26px rgba(240, 90, 40, .3);
  transition: transform .3s var(--usm-ease), box-shadow .3s var(--usm-ease);
}

.usm-auth .message-btn .theme-btn:hover {
  background: #d8410f !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(240, 90, 40, .38);
}

.usm-auth .message-btn .theme-btn span {
  display: none;
}

/* ---------- footer ---------- */
.usm-auth .lower-text {
  padding-top: 20px;
  border-top: 1px solid var(--usm-line);
}

.usm-auth .lower-text p {
  font-size: 15px;
  color: var(--usm-muted);
  margin: 0;
}

.usm-auth .lower-text a {
  font-weight: 600;
  color: var(--usm-accent);
}

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

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .usm-auth {
    padding: 50px 0 60px !important;
  }

  .usm-auth-card {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  /* the brand panel becomes a compact header strip */
  .usm-auth-aside {
    padding: 32px 28px;
  }

  .usm-auth-aside h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .usm-auth-aside p {
    margin-bottom: 18px;
  }

  .usm-auth-points li:nth-child(n+3) {
    display: none;
  }

  .usm-auth-main {
    padding: 32px 28px 34px;
  }
}

@media (max-width: 575px) {
  .usm-auth-aside {
    padding: 26px 22px;
  }

  .usm-auth-main {
    padding: 26px 22px 30px;
  }

  .usm-auth-main .usm-auth-head h2 {
    font-size: 24px;
    line-height: 32px;
  }
}

/* ---------- two-up field row (signup) ---------- */
.usm-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* signup has more fields than login, so tighten the panel a touch */
.usm-auth-main.is-compact .form-group {
  margin-bottom: 15px;
}

.usm-auth-hint {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--usm-muted);
}

.usm-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--usm-muted);
  cursor: pointer;
}

.usm-auth-terms input {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--usm-accent);
  cursor: pointer;
}

.usm-auth-terms a {
  font-weight: 600;
  color: var(--usm-accent);
}

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

@media (max-width: 575px) {
  .usm-auth-row {
    grid-template-columns: 1fr;
  }
}
