.woocommerce {
  h2 {
    text-align: center;
  }
  .woocommerce-form-login.login {
    --accent-active: #ed1c24;
  
    --accent: var(--accent-active);
    @supports (color: oklch(from red l c h)) {
      --accent: oklch(
        from var(--accent-active)
        l
        calc(c * 0.85)
        h
      );
    }
  
    --base-color: #fff;
    --bg-color: rgb(18 18 18);
    --sub-color: rgb(51 51 51);
    --gap: 1em;
  
    width: clamp(min(400px, 100%), 80vw, 600px);
  
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: 2em;
    margin-inline: auto;
  
    border-radius: 8px;
    border: 2px solid var(--sub-color);
  
    box-sizing: border-box;
    overflow: hidden;
  
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--base-color);
  
    @media (width <= 600px) {
      font-size: 16px;
    }
  
    /* === RESET === */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  
      background: transparent;
      border: none;
      outline: none;
      border-radius: 0;
      box-shadow: none;
  
      list-style: none;
  
      color: inherit;
      font: inherit;
      line-height: inherit;
  
      max-width: min(100%, 100vw);
    }
  
    accent-color: var(--accent-active);
  
    /* === FORM ROWS === */
    .form-row {
      display: flex;
      flex-direction: column;
      gap: 0.4em;
    }
  
    /* === LABELS === */
    label {
      font-size: 14px;
      opacity: 0.85;
  
      .required {
        color: var(--accent-active);
      }
    }
  
    /* === INPUTS === */
    .form-control,
    .woocommerce-Input {
      padding: 12px;
      border: 1px solid var(--sub-color);
      border-radius: 4px;
  
      font-size: 14px;
  
      background: var(--bg-color);
      color: var(--base-color);
  
      &::placeholder {
        color: oklch(
          from var(--base-color)
          calc(l * 0.8)
          c
          h
        );
      }
  
      &:-webkit-autofill {
        -webkit-text-fill-color: var(--bg-color);
        box-shadow: 0 0 0 1000px var(--base-color) inset;
        transition: background-color 9999s ease-out;
      }
  
      &:focus-visible {
        outline: 2px solid var(--sub-color);
        outline-offset: 2px;
      }
    }
  
    /* === PASSWORD FIELD === */
    .password-input {
      display: flex;
      align-items: center;
      gap: 0.5em;
  
      .show-password-input {
        width: 40px;
        height: 40px;
        cursor: pointer;
        opacity: 0.7;
  
        &:hover {
          opacity: 1;
        }
      }
    }
  
    /* === REMEMBER ME === */
    .woocommerce-form__label-for-checkbox {
      flex-direction: row;
      align-items: center;
      gap: 0.5em;
      font-size: 14px;
    }
  
    /* === BUTTONS === */
    button,
    a,
    [type="button"] {
      cursor: pointer;
    }
  
    [type="submit"] {
      width: fit-content;
      place-self: center;
  
      background: var(--accent);
      color: var(--base-color);
  
      border-radius: 4px;
      border: 2px solid transparent;
  
      padding: 0.8em 2em;
      margin-top: var(--gap);
  
      transition:
        background .2s ease,
        color .2s ease,
        border .2s ease,
        transform .15s ease;
  
      &:focus-visible {
        outline: 2px solid var(--base-color);
        outline-offset: 3px;
        background: var(--accent-active);
      }
  
      &:hover {
        transform: translateY(-1px);
        background: var(--accent-active);
  
        &:not(:focus-visible) {
          border: 2px solid var(--base-color);
        }
      }
    }

    .more_actions {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      place-content: space-evenly;
    }
    
    .need_account {
      text-align: center;
      margin: 0;

      a {
        color: #fff;
        font-size: 14px;
        text-decoration: none;
        
        &:hover {
          text-decoration: underline;
        }
      }
    }
  
    /* === LOST PASSWORD === */
    .lost_password {
      text-align: center;
      margin: 0;
  
      a {
        color: var(--accent-active);
        font-size: 14px;
        text-decoration: none;
  
        &:hover {
          text-decoration: underline;
        }
      }
    }
  
    /* === DISABLED === */
    [disabled] {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none !important;
    }
  
    /* === REDUCED MOTION === */
    @media (prefers-reduced-motion: reduce) {
      * {
        transition: none !important;
      }
    }
  }
}
