/* The pages before signing in (brand sheet, look A "blue panel", his choice of 08-10-2026). Built on ms-brand.css.
   Computer: the M&S blue panel on the left, the form on the right. Phone and tablet: the panel becomes a band on top.
   Text boxes are 16px so an iPhone does not zoom in; every field and button is at least 48px tall. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.ms-signin {
    background: #ffffff;
    color: var(--ms-charcoal);
    font-family: var(--ms-font-text);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.ms-auth { display: flex; min-height: 100vh; min-height: 100dvh; }

/* The panel */
.ms-auth-panel {
    position: relative;
    overflow: hidden;
    width: 58%;
    background: var(--ms-blue);
    color: #ffffff;
    padding: 72px 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ms-auth-panel .ms-auth-logo { width: 380px; max-width: 100%; height: auto; display: block; margin-bottom: 46px; position: relative; }
.ms-auth-panel h2 { font-family: var(--ms-font-heading); font-size: 42px; line-height: 1.15; font-weight: 600; margin: 0 0 12px; position: relative; }
.ms-auth-panel p { font-size: 21px; margin: 0; opacity: .92; position: relative; }
.ms-auth-mark { position: absolute; right: -150px; bottom: -170px; width: 640px; opacity: .08; pointer-events: none; }

/* The form side */
.ms-auth-side { width: 42%; display: flex; flex-direction: column; padding: 28px 56px; min-width: 0; }
.ms-auth-top { display: flex; justify-content: flex-end; }
.ms-auth-mid { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.ms-auth-form { width: 400px; max-width: 100%; }
.ms-auth-legal { font-size: 12px; line-height: 1.5; color: var(--ms-muted); }

/* The language switch */
.ms-lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ms-field); border-radius: 999px; font-size: 14px; }
.ms-lang a { padding: 6px 12px; border-radius: 999px; color: var(--ms-charcoal); text-decoration: none; min-height: 34px; display: inline-flex; align-items: center; }
.ms-lang a[aria-current="true"] { background: var(--ms-blue); color: #ffffff; font-weight: 600; }
.ms-lang a:focus-visible { outline: 3px solid var(--ms-tint); outline-offset: 1px; }

/* Words and fields */
.ms-auth-form h1 { font-family: var(--ms-font-heading); font-size: 34px; line-height: 1.15; font-weight: 600; color: var(--ms-ink); margin: 0 0 4px; }
.ms-auth-sub { margin: 0 0 28px; color: var(--ms-muted); font-size: 16px; }
.ms-field { margin-bottom: 16px; }
.ms-field label { display: block; font-weight: 600; font-size: 14px; color: var(--ms-ink); margin: 0 0 6px; }
.ms-field input {
    display: block; width: 100%; height: 48px; padding: 0 14px;
    font: inherit; font-size: 16px; color: var(--ms-ink);
    background: #ffffff; border: 1px solid var(--ms-field); border-radius: 8px;
}
.ms-field input:focus { outline: none; border-color: var(--ms-blue); box-shadow: 0 0 0 3px var(--ms-tint); }
.ms-field input.ms-upper { text-transform: uppercase; }
.ms-pw { position: relative; }
.ms-pw input { padding-right: 84px; }
.ms-show {
    position: absolute; top: 4px; right: 4px; height: 40px; min-width: 72px; padding: 0 12px;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--ms-blue);
    background: transparent; border: 0; border-radius: 6px; cursor: pointer;
}
.ms-show:focus-visible { outline: 3px solid var(--ms-tint); }
.ms-error { margin: 6px 0 0; color: var(--ms-red); font-size: 14px; }
.ms-status { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: #ecf7ef; color: #14532d; font-size: 15px; }
.ms-keep { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 4px 0 20px; cursor: pointer; min-height: 44px; }
.ms-keep input { width: 20px; height: 20px; margin: 0; accent-color: var(--ms-blue); flex: none; }
.ms-btn {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 50px;
    font: inherit; font-size: 17px; font-weight: 600; color: #ffffff;
    background: var(--ms-blue); border: 0; border-radius: 8px; cursor: pointer;
}
.ms-btn:hover { background: var(--ms-blue-hover); }
.ms-btn:focus-visible { outline: 3px solid var(--ms-tint); outline-offset: 2px; }
.ms-link { color: var(--ms-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ms-center { text-align: center; margin: 16px 0 0; }
.ms-sep { height: 1px; background: var(--ms-line); margin: 22px 0; border: 0; }
.ms-new { margin: 0 0 10px; font-size: 15px; text-align: center; }
.ms-help { margin: 0; font-size: 14px; color: var(--ms-muted); text-align: center; }
.ms-help span { white-space: nowrap; user-select: all; }
.ms-plain-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Tablets and phones: the panel becomes a band on top, with the switch over it. */
@media (max-width: 991.98px) {
    .ms-auth { flex-direction: column; }
    .ms-auth-panel { width: 100%; padding: 16px 24px 26px; }
    .ms-auth-panel .ms-auth-logo { width: 230px; margin: 12px 0 12px; }
    .ms-auth-panel h2 { display: none; }
    .ms-auth-panel p { font-size: 15px; }
    .ms-auth-mark { right: -70px; bottom: -90px; width: 270px; }
    .ms-auth-panel .ms-auth-top { position: relative; }
    .ms-auth-panel .ms-lang { border-color: rgba(255, 255, 255, .55); }
    .ms-auth-panel .ms-lang a { color: #ffffff; }
    .ms-auth-panel .ms-lang a[aria-current="true"] { background: #ffffff; color: var(--ms-blue); }
    .ms-auth-side { width: 100%; padding: 26px 24px 24px; }
    .ms-auth-side .ms-auth-top { display: none; }
    .ms-auth-mid { display: block; padding: 0 0 18px; }
    .ms-auth-form { width: 100%; }
    .ms-auth-form h1 { font-size: 30px; }
    .ms-auth-sub { margin-bottom: 22px; }
    .ms-auth-legal { font-size: 11px; }
}
@media (min-width: 992px) {
    .ms-auth-panel .ms-auth-top { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
