/* =========================================================
   LOGIN PAGE
   6G CLOTHING
   ========================================================= */


/* =========================================================
   ACTIVE LOGIN ICON
   ========================================================= */

.active-login img {
  filter:
    invert(17%)
    sepia(92%)
    saturate(4336%)
    hue-rotate(344deg)
    brightness(96%)
    contrast(101%);
}


/* =========================================================
   PAGE
   ========================================================= */

.login-page {
  width: 100%;
  min-height: calc(100vh - 82px);

  padding: 0;

  overflow: hidden;

  background:
    linear-gradient(
      110deg,
      #f5f8fa 0%,
      #edf3f6 55%,
      #f8fafb 100%
    );

  color: #071018;
}


/* Hide footer on login page */

.login-page + .site-footer {
  display: none;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.auth-layout {
  width: 100%;
  height: calc(100vh - 82px);

  display: grid;

  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(450px, 0.88fr);

  align-items: stretch;

  gap: 0;
}


/* =========================================================
   LEFT HERO PANEL
   ========================================================= */

.brand-panel {
  position: relative;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  border-radius: 0 18px 18px 0;

  background:
    linear-gradient(
      135deg,
      #f8fafb 0%,
      #edf2f5 50%,
      #e3eaee 100%
    );

  box-shadow:
    inset -1px 0 0 rgba(7, 16, 24, 0.08);

  isolation: isolate;
}


/* =========================================================
   GENERATED HERO IMAGE
   IMPORTANT:
   This image now covers the COMPLETE left container.
   ========================================================= */

.login-product-img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  /*
    Keep the original wide composition.
    The product remains on the right while
    the left side stays available for text.
  */
  object-position: center center;

  z-index: 0;

  filter: none;

  transform: none;

  user-select: none;
}


/* =========================================================
   HERO OVERLAY
   Very subtle so text remains readable.
   ========================================================= */

.brand-panel-overlay {
  position: absolute;

  inset: 0;

  z-index: 1;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      rgba(255, 255, 255, 0) 70%
    );
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.brand-panel-copy {
  position: relative;

  z-index: 3;

  width: min(430px, 48%);

  padding:
    clamp(38px, 5vh, 62px)
    0
    0
    clamp(42px, 5vw, 76px);
}


/* =========================================================
   RED TOP LINE
   ========================================================= */

.brand-panel-copy > i {
  display: block;

  width: 46px;
  height: 4px;

  margin-bottom: 18px;

  border-radius: 999px;

  background: #ed101f;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.brand-panel .eyebrow {
  margin: 0 0 14px;

  color: #071018;

  text-transform: uppercase;

  letter-spacing: 8px;

  font-size: 12px;

  line-height: 1;

  font-weight: 900;
}


/* =========================================================
   HERO HEADING
   ========================================================= */

.brand-panel h1 {
  margin: 0;

  color: #071018;

  font-size:
    clamp(
      48px,
      4.7vw,
      70px
    );

  line-height: 0.9;

  font-weight: 950;

  letter-spacing: -2px;
}


.brand-panel h1 span {
  color: #ed101f;
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero-description {
  margin: 20px 0 26px;

  max-width: 350px;

  color: #526572;

  font-size: 15px;

  line-height: 1.45;

  font-weight: 700;
}


/* =========================================================
   PERKS
   ========================================================= */

.login-perks {
  display: flex;

  align-items: center;

  gap: 0;

  color: #071018;

  font-size: 12px;

  font-weight: 800;
}


.login-perks span {
  min-width: 120px;

  display: grid;

  grid-template-columns: 30px 1fr;

  align-items: center;

  gap: 9px;

  padding-right: 20px;

  margin-right: 20px;

  border-right:
    1px solid
    rgba(7, 16, 24, 0.16);

  line-height: 1.15;
}


.login-perks span:last-child {
  margin-right: 0;

  padding-right: 0;

  border-right: 0;
}


.login-perks img {
  width: 27px;
  height: 27px;

  object-fit: contain;

  filter:
    invert(7%)
    sepia(20%)
    saturate(1243%)
    hue-rotate(164deg)
    brightness(96%)
    contrast(98%);
}


.login-perks strong {
  font-weight: 850;
}


/* =========================================================
   REMOVE OLD RED DISC
   ========================================================= */

.red-disc {
  display: none !important;
}


/* =========================================================
   WEAR YOUR STORY
   ========================================================= */

.wear-script {
  position: absolute;

  left:
    clamp(42px, 5vw, 76px);

  bottom:
    clamp(24px, 4vh, 42px);

  z-index: 4;

  margin: 0;

  color: #071018;

  font-family:
    "Brush Script MT",
    "Segoe Script",
    cursive;

  font-size:
    clamp(
      28px,
      2.6vw,
      42px
    );

  line-height: 0.85;

  transform: rotate(-8deg);

  pointer-events: none;
}


.wear-script::after {
  content: "";

  display: block;

  width: 125px;
  height: 4px;

  margin:
    14px 0 0 10px;

  border-radius: 999px;

  background: #ed101f;

  transform: rotate(-14deg);
}


/* =========================================================
   RIGHT AUTH CARD
   ========================================================= */

.auth-card {
  position: relative;

  width: auto;

  margin:
    clamp(20px, 4vh, 42px)
    clamp(28px, 4vw, 58px);

  align-self: center;

  overflow: hidden;

  border:
    1px solid
    rgba(214, 225, 232, 0.95);

  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.98);

  box-shadow:
    0 24px 70px
    rgba(7, 16, 24, 0.11);

  z-index: 5;
}


/* =========================================================
   AUTH TABS
   ========================================================= */

.auth-tabs {
  height: 58px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  background: #f4f7f9;

  border-bottom:
    1px solid
    #e0e7ec;
}


.auth-tabs button {
  position: relative;

  border: 0;

  border-bottom:
    3px solid
    transparent;

  background: transparent;

  color: #65727d;

  font-size: 17px;

  font-weight: 900;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


.auth-tabs button:hover {
  background: #ffffff;

  color: #071018;
}


.auth-tabs .active {
  background: #ffffff;

  color: #ed101f;

  border-bottom-color:
    #ed101f;
}


/* =========================================================
   FORM
   ========================================================= */

.auth-form {
  padding:
    30px
    clamp(28px, 3vw, 42px)
    30px;

  background: #ffffff;
}


.auth-form.hidden {
  display: none;
}


/* =========================================================
   FORM HEADING
   ========================================================= */

.auth-form h2 {
  margin: 0 0 7px;

  color: #071018;

  font-size:
    clamp(
      30px,
      2.6vw,
      38px
    );

  line-height: 1;

  font-weight: 950;

  letter-spacing: -1px;
}


.form-description {
  margin: 0 0 24px;

  color: #667783;

  font-size: 14px;

  line-height: 1.4;

  font-weight: 650;
}


/* =========================================================
   FORM LABEL
   ========================================================= */

.auth-form > label {
  display: grid;

  gap: 8px;

  margin-bottom: 16px;

  color: #071018;

  font-size: 13px;

  font-weight: 900;
}


/* =========================================================
   INPUT CONTAINER
   ========================================================= */

.auth-form > label > span {
  height: 50px;

  display: grid;

  grid-template-columns:
    34px
    minmax(0, 1fr)
    36px;

  align-items: center;

  padding: 0 6px 0 14px;

  border:
    1px solid
    #d6e0e6;

  border-radius: 8px;

  background: #fbfdfe;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}


.auth-form > label > span:focus-within {
  border-color:
    #ed101f;

  background: #ffffff;

  box-shadow:
    0 0 0 3px
    rgba(237, 16, 31, 0.08);
}


/* =========================================================
   INPUT ICON
   ========================================================= */

.auth-form > label > span img {
  width: 20px;
  height: 20px;

  object-fit: contain;

  opacity: 0.75;
}


/* =========================================================
   INPUT
   ========================================================= */

.auth-form input {
  width: 100%;

  min-width: 0;

  padding: 0;

  border: 0;

  outline: none;

  background: transparent;

  color: #071018;

  font-size: 14px;

  font-weight: 700;
}


.auth-form input::placeholder {
  color: #8c99a5;

  opacity: 1;
}


/* =========================================================
   EYE TOGGLE BUTTON
   ========================================================= */

.eye-btn {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 30px;
  height: 30px;

  padding: 0;

  border: 0;

  border-radius: 6px;

  background: transparent;

  color: #8c99a5;

  cursor: pointer;

  transition:
    color 0.18s ease,
    background 0.18s ease;

  flex-shrink: 0;
}


.eye-btn:hover {
  color: #071018;

  background: rgba(7, 16, 24, 0.06);
}


/* Show open eye by default, hide closed eye */

.eye-btn .eye-open  { display: block; }
.eye-btn .eye-closed { display: none; }


/* When password is visible, swap icons */

.eye-btn.is-visible .eye-open  { display: none; }
.eye-btn.is-visible .eye-closed { display: block; }


/* =========================================================
   AUTH ROW
   ========================================================= */

.auth-row {
  margin:
    2px 0 20px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 16px;
}


/* =========================================================
   REMEMBER CHECKBOX
   ========================================================= */

.auth-row .check {
  position: relative;

  display: flex;

  flex-direction: row;

  align-items: center;

  gap: 9px;

  margin: 0;

  color: #071018;

  font-size: 13px;

  font-weight: 750;

  cursor: pointer;
}


.auth-row .check input {
  width: 19px;
  height: 19px;

  margin: 0;

  accent-color:
    #ed101f;

  cursor: pointer;
}


.auth-row .check .check-box {
  display: none;
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.auth-row > a {
  color: #ed101f;

  font-size: 13px;

  font-weight: 900;

  text-decoration: underline;

  cursor: pointer;
}


/* =========================================================
   MAIN BUTTON
   ========================================================= */

.auth-submit {
  width: 100%;

  height: 53px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 15px;

  border: 0;

  border-radius: 8px;

  background:
    linear-gradient(
      135deg,
      #f31525 0%,
      #ed101f 100%
    );

  color: #ffffff;

  font-size: 15px;

  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 14px 28px
    rgba(237, 16, 31, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.auth-submit:hover {
  transform: translateY(-1px);

  box-shadow:
    0 18px 34px
    rgba(237, 16, 31, 0.25);
}


.auth-submit:active {
  transform: translateY(0);
}


.auth-submit b {
  font-size: 19px;

  font-weight: 500;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.auth-divider {
  position: relative;

  height: 46px;

  display: grid;

  place-items: center;

  color: #8a96a0;

  text-transform: uppercase;

  font-size: 10px;

  font-weight: 900;
}


.auth-divider::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;

  top: 50%;

  height: 1px;

  background: #dce4e9;
}


.auth-divider span {
  position: relative;

  padding:
    0 14px;

  background: #ffffff;

  z-index: 1;
}


/* =========================================================
   SOCIAL LOGIN
   ========================================================= */

.social-login {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 12px;
}


/* Single button variant — centers the button */

.social-login--single {
  grid-template-columns: 1fr;

  max-width: 260px;

  margin-inline: auto;
}


.social-login button {
  min-width: 0;

  height: 48px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  padding: 0 10px;

  border:
    1px solid
    #d6e0e6;

  border-radius: 8px;

  background: #ffffff;

  color: #071018;

  font-size: 12px;

  font-weight: 850;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}


.social-login button:hover {
  border-color: #b9c7d0;

  background: #f8fafb;

  transform: translateY(-1px);
}


.social-login svg {
  flex-shrink: 0;
}


.apple-login {
  color: #000000;
}


/* =========================================================
   SWITCH ACCOUNT
   ========================================================= */

.switch-line {
  margin:
    22px 0 0 !important;

  text-align: center;

  color: #071018 !important;

  font-size: 14px !important;

  font-weight: 700 !important;
}


.switch-line button {
  padding: 0;

  border: 0;

  background: transparent;

  color: #ed101f;

  font-size: 14px;

  font-weight: 900;

  cursor: pointer;
}


.switch-line button:hover {
  text-decoration: underline;
}


/* =========================================================
   FIELD VALIDATION
   ========================================================= */

/* Error text under fields */

.field-error {
  display: block;

  min-height: 0;

  max-height: 0;

  overflow: hidden;

  margin-top: 0;

  color: #e01020;

  font-size: 11.5px;

  font-weight: 750;

  font-style: normal;

  line-height: 1.3;

  transition:
    max-height 0.25s ease,
    margin-top 0.25s ease;
}


.field-error:not(:empty) {
  max-height: 40px;

  margin-top: 6px;
}


/* Input invalid state */

.auth-form > label > span.is-invalid {
  border-color: #e01020;

  background: #fff8f8;

  box-shadow:
    0 0 0 3px
    rgba(224, 16, 32, 0.08);
}


/* Input valid state */

.auth-form > label > span.is-valid {
  border-color: #15a651;

  background: #f6fdf9;

  box-shadow:
    0 0 0 3px
    rgba(21, 166, 81, 0.07);
}


/* =========================================================
   PASSWORD RULES CHECKLIST
   ========================================================= */

.pwd-rules {
  list-style: none;

  margin: -4px 0 16px;

  padding: 0;

  display: grid;

  gap: 6px;
}


.pwd-rules li {
  display: flex;

  align-items: center;

  gap: 8px;

  color: #8a96a0;

  font-size: 12px;

  font-weight: 700;

  transition: color 0.2s ease;
}


.rule-dot {
  flex-shrink: 0;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #d6e0e6;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}


/* Rule passed */

.pwd-rules li.pass {
  color: #15a651;
}


.pwd-rules li.pass .rule-dot {
  background: #15a651;

  transform: scale(1.15);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {

  .login-page {
    min-height: auto;

    overflow: visible;
  }


  .auth-layout {
    height: auto;

    min-height: 0;

    grid-template-columns: 1fr;
  }


  /* HERO */

  .brand-panel {
    height: 620px;

    min-height: 620px;

    border-radius: 0;
  }


  .login-product-img {
    object-position: center center;
  }


  .brand-panel-copy {
    width: 50%;

    padding-left: 50px;
  }


  /* LOGIN CARD */

  .auth-card {
    width: min(
      680px,
      calc(100% - 48px)
    );

    margin:
      32px auto 40px;

    align-self: auto;
  }

}


/* =========================================================
   LAPTOP SHORT HEIGHT
   ========================================================= */

@media (
  max-height: 760px
) and (
  min-width: 1181px
) {

  .brand-panel-copy {
    padding-top: 34px;
  }


  .brand-panel h1 {
    font-size:
      clamp(
        44px,
        4.1vw,
        60px
      );
  }


  .hero-description {
    margin-top: 16px;

    margin-bottom: 18px;

    font-size: 14px;
  }


  .login-perks {
    transform: scale(0.94);

    transform-origin: left center;
  }


  .auth-form {
    padding-top: 24px;

    padding-bottom: 24px;
  }


  .auth-form h2 {
    font-size: 31px;
  }


  .auth-form > label {
    margin-bottom: 12px;
  }


  .auth-form > label > span {
    height: 46px;
  }


  .auth-row {
    margin-bottom: 15px;
  }


  .auth-submit {
    height: 48px;
  }


  .auth-divider {
    height: 40px;
  }


  .social-login button {
    height: 44px;
  }


  .switch-line {
    margin-top: 17px !important;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

  .login-page {
    overflow: visible;
  }


  .auth-layout {
    display: block;

    height: auto;
  }


  /* HERO */

  .brand-panel {
    height: 560px;

    min-height: 560px;

    border-radius: 0;
  }


  /*
    On mobile the wide image needs to move
    toward the right so the T-shirt remains visible.
  */

  .login-product-img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: 67% center;
  }


  .brand-panel-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(255,255,255,0.25) 0%,
        rgba(255,255,255,0.04) 65%,
        rgba(255,255,255,0) 100%
      );
  }


  .brand-panel-copy {
    width: 72%;

    padding:
      34px
      0
      0
      24px;
  }


  .brand-panel-copy > i {
    width: 38px;

    height: 3px;

    margin-bottom: 15px;
  }


  .brand-panel .eyebrow {
    margin-bottom: 12px;

    letter-spacing: 6px;

    font-size: 10px;
  }


  .brand-panel h1 {
    font-size: 44px;

    line-height: 0.92;

    letter-spacing: -1px;
  }


  .hero-description {
    max-width: 280px;

    margin-top: 17px;

    font-size: 14px;
  }


  /* Hide perks on small mobile */

  .login-perks {
    display: none;
  }


  .wear-script {
    left: 24px;

    bottom: 25px;

    font-size: 30px;
  }


  /* AUTH CARD */

  .auth-card {
    width: auto;

    margin:
      18px
      16px
      30px;

    border-radius: 15px;
  }


  .auth-tabs {
    height: 54px;
  }


  .auth-tabs button {
    font-size: 15px;
  }


  .auth-form {
    padding:
      26px
      18px
      28px;
  }


  .auth-form h2 {
    font-size: 30px;
  }


  .form-description {
    font-size: 13px;

    margin-bottom: 21px;
  }


  .auth-form > label {
    font-size: 12px;

    margin-bottom: 14px;
  }


  .auth-form > label > span {
    height: 49px;

    padding: 0 12px;
  }


  .auth-row {
    gap: 8px;

    margin-bottom: 17px;
  }


  .auth-row .check {
    font-size: 12px;
  }


  .auth-row > a {
    font-size: 12px;
  }


  .auth-submit {
    height: 50px;
  }


  .social-login {
    grid-template-columns: 1fr;

    gap: 9px;
  }


  .social-login button {
    height: 48px;

    font-size: 12px;
  }


  .switch-line {
    font-size: 13px !important;
  }


  .switch-line button {
    font-size: 13px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

  .brand-panel {
    height: 500px;

    min-height: 500px;
  }


  .brand-panel-copy {
    width: 78%;

    padding-left: 20px;

    padding-top: 30px;
  }


  .brand-panel h1 {
    font-size: 39px;
  }


  .hero-description {
    max-width: 245px;

    font-size: 13px;
  }


  .login-product-img {
    object-position: 70% center;
  }


  .wear-script {
    display: none;
  }


  .auth-card {
    margin:
      14px
      12px
      24px;
  }


  .auth-form {
    padding:
      24px
      16px
      25px;
  }


  .auth-form h2 {
    font-size: 28px;
  }


  .auth-row {
    align-items: flex-start;
  }

}