/* BeBarefoot redesign — login, mobile
 * Covers the account drawer and the standalone /login/ page.
 */
@media (max-width: 991px) {
  :root {
    --beb-login-ink: #211f1d;
    --beb-login-muted: #6f6a65;
    --beb-login-line: #dedbd7;
    --beb-login-soft: #f7f6f4;
  }

  body.in-login main.content,
  body.in-registration main.content,
  body.in-forgotten-password main.content,
  body .user-action .user-action-login {
    font-family: "Rolen DT", sans-serif !important;
  }

  body .login-form {
    width: 100%;
    margin: 0;
  }

  body .login-form > .form-group {
    margin: 0 0 16px;
  }

  body .login-form label {
    display: block;
    margin: 0 0 7px;
    color: var(--beb-login-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
  }

  body .login-form .form-control-wrapper {
    width: 100%;
  }

  body .login-form input.form-control {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid #c9c5c0;
    border-radius: 6px;
    background: #fff;
    color: var(--beb-login-ink);
    font-size: 16px; /* prevents iOS zoom */
    line-height: 24px;
    box-shadow: none;
  }

  body .login-form input.form-control:focus {
    border-color: var(--beb-login-ink);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(33, 31, 29, .12);
  }

  body .login-form .submit-wrapper {
    margin-top: 6px;
  }

  body .login-form .submit-wrapper .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    border: 1px solid var(--beb-login-ink);
    border-radius: 999px;
    background: var(--beb-login-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    box-shadow: none;
  }

  body .login-form .alternative-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 0;
  }

  body .login-form .alternative-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--beb-login-line);
    border-radius: 999px;
    color: var(--beb-login-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }

  body .login-form .social-login-buttons {
    margin-top: 26px;
  }

  body .login-form .social-login-buttons-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 17px;
    color: var(--beb-login-muted);
    font-size: 13px;
  }

  body .login-form .social-login-buttons-divider::before,
  body .login-form .social-login-buttons-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--beb-login-line);
  }

  body .login-form .social-login-buttons .form-group {
    margin: 0 0 10px;
  }

  body .login-form .login-btn,
  body .login-form .login-btn.facebook,
  body .login-form .login-btn.google {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 46px;
    border: 1px solid var(--beb-login-line);
    border-radius: 6px;
    background: #fff;
    color: var(--beb-login-ink);
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: none;
  }

  body .login-form .login-btn > span:first-child {
    position: absolute;
    left: 15px;
  }

  body .login-form .login-btn strong {
    color: inherit;
    font-weight: 600;
  }

  /* Account panel: full width and stable while the page behind it is locked. */
  body .user-action .user-action-login.login-widget {
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  body .user-action .user-action-login .popup-widget-inner {
    width: 100%;
    padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  }

  body .user-action .user-action-login h2 {
    margin: 0 0 24px;
    color: var(--beb-login-ink);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-transform: none;
  }

  /* Standalone login reached from checkout and the mobile menu. */
  body.id--4 main.content,
  body.in-login main.content {
    width: 100%;
    padding: 32px 20px 56px;
  }

  body.id--4 main.content > h1,
  body.id--4 main.content > .content-inner > h1,
  body.in-login main.content > h1,
  body.in-login main.content > .content-inner > h1 {
    margin: 0 0 26px;
    color: var(--beb-login-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    text-transform: none;
  }

  body.id--4 main.content > .content-inner,
  body.in-login main.content > .content-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Registration */
  body.in-registration main.content,
  body.in-forgotten-password main.content {
    width: 100%;
    padding: 30px 20px 56px;
  }

  body.in-registration main.content > .content-inner,
  body.in-forgotten-password main.content > .content-inner {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.in-registration main.content h1,
  body.in-forgotten-password main.content h1 {
    margin: 0 0 28px;
    color: var(--beb-login-ink);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    text-transform: none;
  }

  body.in-registration .registration-form,
  body.in-registration .registration-form fieldset,
  body.in-registration .registration-form .co-box,
  body.in-forgotten-password .forgotten-password-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.in-registration .registration-form h2 {
    margin: 0 0 18px;
    color: var(--beb-login-ink);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-transform: none;
  }

  body.in-registration .registration-form > h2,
  body.in-registration .registration-form > fieldset,
  body.in-registration .registration-form > .social-login {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--beb-login-line);
  }

  body.in-registration .registration-form .form-legend {
    margin: -40px 0 22px;
    color: var(--beb-login-muted);
    font-size: 12px;
    text-align: right;
  }

  body.in-registration .registration-form .form-group,
  body.in-forgotten-password .forgotten-password-form .form-group {
    margin: 0 0 16px;
  }

  body.in-registration .registration-form label,
  body.in-forgotten-password .forgotten-password-form label {
    display: block;
    margin: 0 0 7px;
    color: var(--beb-login-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
  }

  body.in-registration .registration-form input.form-control,
  body.in-forgotten-password .forgotten-password-form input.form-control {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid #c9c5c0;
    border-radius: 6px;
    background: #fff;
    color: var(--beb-login-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    box-shadow: none;
  }

  body.in-registration .registration-form input.form-control:focus,
  body.in-forgotten-password .forgotten-password-form input.form-control:focus {
    border-color: var(--beb-login-ink);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(33, 31, 29, .12);
  }

  body.in-registration .registration-form .stay-in-touch .form-group {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--beb-login-line);
    border-radius: 6px;
  }

  body.in-registration .registration-form input[type="checkbox"] {
    position: static !important;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    accent-color: var(--beb-login-ink);
  }

  body.in-registration .registration-form .stay-in-touch label {
    position: static !important;
    flex: 1 1 auto;
    width: auto !important;
    max-width: none !important;
    margin: 0;
    padding: 0 !important;
    float: none !important;
    font-weight: 400;
    white-space: normal;
  }

  body.in-registration .registration-form .consents .label {
    margin: 0 0 18px;
    color: var(--beb-login-ink);
    font-size: 14px;
    line-height: 1.55;
  }

  body.in-registration .registration-form .consents a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  body.in-registration .registration-form .submit-wrapper .btn,
  body.in-forgotten-password .forgotten-password-form .submit-wrapper .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    border: 1px solid var(--beb-login-ink);
    border-radius: 999px;
    background: var(--beb-login-ink);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
    box-shadow: none;
  }

  body.in-registration .registration-form .social-login .form-group {
    margin: 0 0 10px;
  }

  body.in-registration .registration-form .login-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 46px;
    border: 1px solid var(--beb-login-line);
    border-radius: 6px;
    background: #fff;
    color: var(--beb-login-ink);
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: none;
  }

  body.in-registration .registration-form .login-btn > span:first-child {
    position: absolute;
    left: 15px;
  }

  body.in-registration .registration-form .login-btn strong {
    color: inherit;
    font-weight: 600;
  }

  /* Forgotten password */
  body.in-forgotten-password main.content h1 {
    margin-bottom: 14px;
  }

  body.in-forgotten-password main.content > .content-inner > p {
    margin: 0 0 24px;
    color: var(--beb-login-muted);
    font-size: 15px;
    line-height: 1.5;
  }
}
