/* Public authentication pages. Site chrome comes from the shared header, nav and footer. */

body.wmf-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f0f4f9;
    color: #1f2733;
}

body.wmf-auth-page .page-content.wmf-auth {
    flex: 1 0 auto;
    background: #f0f4f9;
}

body.wmf-auth-page .navbar-nav-link.active:not(.nav-login-cta) {
    background-color: #325c9b;
    color: #fff;
}

.wmf-auth .content {
    padding: 40px 20px 72px;
}

.wmf-auth a {
    color: #0b6fd9;
    text-decoration: none;
}

.wmf-auth a:hover {
    color: #093f89;
    text-decoration: underline;
}

.wmf-auth__card {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(15, 35, 70, 0.06);
}

.wmf-auth__card--wide {
    max-width: 760px;
}

.wmf-auth__card-head {
    padding: 20px 28px 18px;
    border-bottom: 1px solid #e8ecf2;
}

.wmf-auth__card-head h2 {
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2733;
}

.wmf-auth__card-head p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.wmf-auth__card-head a {
    font-weight: 600;
}

.wmf-auth__form {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wmf-auth__form--signup {
    gap: 26px;
}

.wmf-auth__alert {
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 5px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.45;
}

.wmf-auth__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.wmf-auth__label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2733;
}

.wmf-auth__control {
    position: relative;
}

.wmf-auth__control > i {
    position: absolute;
    left: 13px;
    top: 13px;
    color: #7c828b;
    font-size: 18px;
    pointer-events: none;
}

.wmf-auth__input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2733;
    border: 1px solid #d2d5db;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
}

.wmf-auth__input--icon {
    padding-left: 42px;
}

.wmf-auth__input--toggle {
    padding-right: 48px;
}

.wmf-auth__input--code {
    height: 52px;
    padding: 0 16px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 6px;
    text-align: center;
}

.wmf-auth__input:focus {
    outline: none;
    border-color: #0b83ff;
    box-shadow: 0 0 0 3px rgba(11, 131, 255, 0.2);
}

.wmf-auth__toggle {
    position: absolute;
    right: 1px;
    top: 0;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wmf-auth__row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.wmf-auth__row > .wmf-auth__field {
    flex: 1 1 260px;
}

.wmf-auth__row--options {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wmf-auth__check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #1f2733;
    cursor: pointer;
    min-height: 32px;
}

.wmf-auth__check input {
    width: 17px;
    height: 17px;
    accent-color: #0b83ff;
    margin: 0;
    flex-shrink: 0;
}

.wmf-auth__btn {
    height: 46px;
    border-radius: 5px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
}

a.wmf-auth__btn,
a.wmf-auth__btn:hover,
a.wmf-auth__btn:focus,
a.wmf-auth__btn:focus-visible {
    text-decoration: none;
}

a.wmf-auth__btn--primary,
.wmf-auth__btn--primary {
    border: 0;
    background: #0b83ff;
    color: #fff;
}

a.wmf-auth__btn--primary:hover,
a.wmf-auth__btn--primary:focus,
a.wmf-auth__btn--primary:focus-visible,
.wmf-auth__btn--primary:hover,
.wmf-auth__btn--primary:focus {
    background: #0974e6;
    color: #fff;
}

a.wmf-auth__btn--ghost,
.wmf-auth__btn--ghost {
    border: 1px solid #093f89;
    background: #fff;
    color: #093f89;
}

a.wmf-auth__btn--ghost:hover,
a.wmf-auth__btn--ghost:focus,
a.wmf-auth__btn--ghost:focus-visible,
.wmf-auth__btn--ghost:hover,
.wmf-auth__btn--ghost:focus {
    background: #f0f4f9;
    color: #093f89;
}

.wmf-auth__btn--inline {
    width: auto;
    padding: 0 26px;
}

.wmf-auth__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #6b7280;
}

.wmf-auth__divider::before,
.wmf-auth__divider::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #e5e7eb;
}

.wmf-auth__legal {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
    text-align: center;
}

.wmf-auth__legal--rule {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #e8ecf2;
}

.wmf-auth__fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.wmf-auth__legend {
    padding: 0;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #093f89;
}

.wmf-auth__rule {
    height: 1px;
    background: #e8ecf2;
    margin: -4px 0;
}

.wmf-auth__country {
    max-width: 50%;
    min-width: 260px;
}

.wmf-auth__hint {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.wmf-auth__hint i {
    color: #0b6fd9;
    font-size: 16px;
}

.wmf-auth__checks {
    padding-top: 22px;
    border-top: 1px solid #e8ecf2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wmf-auth__actions {
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wmf-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 500;
}

.wmf-auth__back--center {
    align-self: center;
}

.wmf-auth__notice {
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.wmf-auth__notice-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e7f2ff;
    color: #0b6fd9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.wmf-auth__notice h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2733;
}

.wmf-auth__notice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}

.wmf-auth__notice p.wmf-auth__muted {
    margin: 0 0 6px;
    font-size: 14px;
    color: #6b7280;
}

.wmf-auth__stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.wmf-auth-page :focus-visible {
    outline: 3px solid #00aeef;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .wmf-auth__card-head,
    .wmf-auth__form,
    .wmf-auth__notice {
        padding-left: 20px;
        padding-right: 20px;
    }

    .wmf-auth__country {
        max-width: 100%;
    }

    .wmf-auth__btn--inline {
        width: 100%;
    }
}
