.mw-auth-shell {
    min-height: 100vh;
}

.mw-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.mw-auth-brand-logo {
    display: block;
    width: 154px;
    height: auto;
}

.mw-auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(138, 212, 255, 0.26);
    background: linear-gradient(135deg, rgba(138, 212, 255, 0.22), rgba(125, 240, 212, 0.14));
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.08em;
}

.mw-auth-brand-copy {
    display: flex;
    flex-direction: column;
}

.mw-auth-brand-copy strong {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.04em;
}

.mw-auth-brand-copy strong span {
    color: var(--mw-primary);
}

.mw-auth-brand-copy small,
.mw-auth-copy,
.mw-auth-hero p,
.mw-auth-highlight p,
.mw-auth-inline-error,
.mw-auth-link,
.mw-auth-flash,
.mw-success-message,
.mw-secondary-link,
.passwordCheckList,
.mw-password-intro {
    color: var(--mw-text-muted);
}

.mw-auth-locale-switcher {
    display: inline-flex;
    gap: 8px;
}

.mw-auth-locale-switcher a {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--mw-border);
    background: var(--mw-surface-subtle-bg);
    font-size: 0.82rem;
}

.mw-auth-locale-switcher a.is-active {
    color: var(--mw-text);
    border-color: rgba(138, 212, 255, 0.4);
    background: rgba(138, 212, 255, 0.1);
}

.mw-auth-hero h1,
.mw-auth-heading,
.mw-success-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.05em;
}

.mw-auth-hero h1 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.02;
}

.mw-auth-highlight {
    margin-top: auto;
    padding: 22px;
    border-radius: var(--mw-radius-lg);
    display: grid;
    gap: 18px;
    border: 1px solid var(--mw-border);
    background: var(--mw-surface-card-bg);
    box-shadow: var(--mw-shadow);
}

.mw-auth-highlight strong {
    display: block;
    margin-bottom: 6px;
}

.mw-auth-main {
    min-height: 100vh;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 36px 28px;
}

.mw-auth-card {
    width: min(560px, 100%);
    padding: 34px;
    border-radius: var(--mw-radius-xl);
}

.mw-auth-kicker,
.mw-auth-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: var(--mw-primary);
}

.mw-auth-heading {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.04;
}

.mw-auth-copy {
    margin: 10px 0 24px;
    line-height: 1.7;
}

.mw-auth-hint {
    margin: -2px 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--mw-text-muted);
}

.mw-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mw-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mw-auth-field span {
    font-size: 0.92rem;
    color: var(--mw-text);
}

.mw-auth-field input {
    min-height: var(--mw-control-height-lg);
}

.mw-auth-field input.has-error,
.mw-auth-field input:focus,
.mw-auth-password:focus-within {
    border-color: rgba(138, 212, 255, 0.42);
    outline: none;
}

.mw-auth-password {
    display: flex;
    align-items: center;
}

.mw-auth-password input {
    border: 0;
    background: transparent;
}

.mw-auth-eye {
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    color: var(--mw-text-muted);
    cursor: pointer;
}

.mw-auth-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mw-auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mw-auth-actions form {
    flex: 1 1 0;
}

.mw-auth-social-button {
    min-height: var(--mw-control-height-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: var(--mw-text);
    font-weight: 600;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.mw-auth-social-button--google {
    justify-content: flex-start;
    padding-inline: 16px 18px;
    border-color: rgba(160, 184, 214, 0.16);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mw-auth-social-button:hover {
    transform: translateY(-1px);
    border-color: rgba(138, 212, 255, 0.3);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.mw-auth-social-button:focus-visible {
    outline: 2px solid rgba(138, 212, 255, 0.45);
    outline-offset: 2px;
}

.mw-auth-social-button[aria-disabled="true"],
.mw-auth-social-button.is-loading {
    pointer-events: none;
    opacity: 0.82;
}

.mw-auth-social-button.is-loading span:last-child::after {
    content: '...';
}

.mw-auth-social-icon {
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 0;
}

.mw-auth-social-icon svg,
.mw-auth-social-icon-svg {
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    display: block;
    flex: 0 0 20px;
}

.mw-auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
    color: var(--mw-text-muted);
    font-size: 0.86rem;
}

.mw-auth-divider::before {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mw-auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 14px;
    background: var(--mw-surface-panel-bg);
}

.mw-auth-link,
.mw-secondary-link {
    font-size: 0.92rem;
}

.mw-secondary-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mw-auth-link-spaced {
    margin-top: 4px;
}

.mw-auth-inline-error {
    margin: -4px 0 0;
    font-size: 0.9rem;
    color: var(--mw-danger);
}

.mw-auth-flash {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: var(--mw-radius-md);
    border: 1px solid rgba(160, 184, 214, 0.14);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
}

.mw-auth-flash i {
    margin-top: 2px;
    color: var(--mw-primary);
}

.mw-auth-flash span {
    display: block;
    line-height: 1.55;
}

.mw-auth-flash.is-error {
    border-color: rgba(255, 107, 107, 0.34);
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.12), rgba(255, 107, 107, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 171, 171, 0.08);
}

.mw-auth-flash.is-error i {
    color: var(--mw-danger);
}

.mw-auth-flash.is-success i {
    color: var(--mw-success);
}

.mw-auth-flash.is-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--mw-text);
}

.mw-auth-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--mw-text-muted);
}

.mw-auth-locked-email {
    padding: 15px 16px;
    border-radius: 16px;
    color: var(--mw-text);
    font-weight: 700;
}

.mw-auth-checkbox {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--mw-text-muted);
}

.mw-auth-checkbox input {
    margin-top: 4px;
}

.passwordCheckList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.82rem;
}

.passwordCheckList li::before {
    content: '× ';
}

.passwordCheckList li.valid {
    color: var(--mw-success);
}

.passwordCheckList li.valid::before {
    content: '✓ ';
}

.mw-password-intro,
.password-valid-message {
    margin: 0 0 8px;
    font-size: 0.82rem;
}

.password-valid-message {
    color: var(--mw-success);
}

.mw-success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 18px;
    border-radius: var(--mw-radius-lg);
}

.mw-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    color: var(--mw-success);
}

.mw-success-icon i {
    font-size: 2rem;
}

.mw-success-icon-email {
    color: var(--mw-primary);
}

.mw-success-icon-danger {
    color: var(--mw-danger);
}

.mw-success-title {
    font-size: clamp(2rem, 3vw, 3rem);
}

.mw-success-message {
    max-width: 360px;
    line-height: 1.7;
}

.mw-auth-submit-danger {
    width: 100%;
    background: rgba(255, 139, 139, 0.14);
    color: #fff4f4;
    border: 1px solid rgba(255, 139, 139, 0.28);
}

.mw-spin {
    animation: mw-spin 0.8s linear infinite;
}

@keyframes mw-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .mw-auth-main {
        padding: 20px 16px;
    }

    .mw-auth-card {
        padding: 24px;
    }
}

.mw-auth-main-topbar {
    width: min(560px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 18px;
}

.mw-auth-brand--compact .mw-auth-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.88rem;
}


.mw-auth-body--email-entry .mw-auth-main {
    align-content: center;
    padding: 32px 28px;
}

.mw-auth-body--email-entry .mw-auth-card {
    width: min(508px, 100%);
    padding: 32px 32px 30px;
}

.mw-auth-body--email-entry .mw-auth-main-topbar {
    width: min(508px, 100%);
}

.mw-auth-body--email-entry .mw-auth-heading {
    font-size: clamp(2.15rem, 4.6vw, 3.05rem);
    line-height: 1.01;
}

.mw-auth-copy--compact {
    max-width: 30rem;
    margin: 10px 0 0;
    font-size: 1rem;
    line-height: 1.6;
}

.mw-auth-entry-intro {
    display: grid;
    gap: 0;
    margin-bottom: 22px;
}

.mw-auth-entry-stack {
    display: grid;
    gap: 18px;
}

.mw-auth-form--entry {
    gap: 14px;
}

.mw-auth-form--entry .mw-auth-field span {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mw-text-muted);
}

.mw-auth-body--email-entry .mw-auth-field input {
    min-height: 54px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 720px) {
    .mw-auth-main-topbar {
        width: 100%;
        margin-bottom: 14px;
    }

    .mw-auth-body--email-entry .mw-auth-main {
        padding: 20px 18px;
    }

    .mw-auth-body--email-entry .mw-auth-card {
        width: 100%;
        padding: 26px 22px 24px;
    }

    .mw-auth-body--email-entry .mw-auth-heading {
        max-width: none;
        font-size: clamp(1.95rem, 9.6vw, 2.55rem);
    }

    .mw-auth-entry-stack {
        gap: 16px;
    }
}
.mw-auth-locked-email-wrap {
    display: grid;
    gap: 8px;
}

.mw-auth-locked-email-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mw-text-muted);
}

.mw-auth-row--split {
    align-items: center;
}

.mw-auth-row--top-line {
    padding-top: 4px;
}

.mw-auth-form--register .form-helper.check-list {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--mw-border);
    background: var(--mw-surface-subtle-bg);
}

.mw-auth-checkbox {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--mw-border);
    background: rgba(255, 255, 255, 0.025);
    line-height: 1.6;
}

.mw-auth-checkbox a {
    color: var(--mw-text);
    text-decoration: underline;
    text-decoration-color: rgba(138, 212, 255, 0.28);
    text-underline-offset: 3px;
}

.mw-auth-row--single {
    justify-content: flex-start;
}
