body {
    margin: 0;
    font-family: "Albert Sans", sans-serif;
    color: #111;
    background: #f3f4f6;
}

.mti-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 48px 20px;
}

body:not(.mti-auth-storefront) .mti-auth-page {
    min-height: 100vh;
}

.mti-auth-page__inner {
    width: 100%;
    max-width: 480px;
}

.mti-auth-card {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 40px 36px 32px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
}

.mti-auth-card__logo {
    display: block;
    text-align: center;
    margin-bottom: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
}

.mti-auth-card__logo img {
    max-width: 168px;
    height: auto;
    margin: 0 auto;
    display: block;
    background: transparent;
}

.mti-auth-card__badge {
    display: inline-block;
    margin: 0 auto 16px;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

.mti-auth-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.mti-auth-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.mti-auth-card__subtitle {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.mti-auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.mti-auth-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.mti-auth-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(11, 60, 42, 0.06);
}

.mti-auth-tab {
    flex: 1 1 0;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: rgba(11, 60, 42, 0.72);
}

.mti-auth-tab.is-active {
    background: #fff;
    color: #0b3c2a;
    box-shadow: 0 1px 3px rgba(11, 60, 42, 0.12);
}

.mti-auth-tab.is-disabled,
.mti-auth-tab:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mti-auth-tab__hint {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.mti-auth-account {
    display: block;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    word-break: break-word;
}

.mti-auth-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mti-auth-card__body > .mti-auth-form {
    margin: 0;
}

.mti-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mti-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.mti-auth-actions .tf-btn {
    width: 100%;
}

.mti-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mti-auth-field__label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.mti-auth-field__req {
    margin-left: 2px;
}

.mti-auth-field__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.9375rem;
    color: #000;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    box-sizing: border-box;
}

.mti-auth-field__input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.mti-auth-field__input.is-invalid {
    border-color: #b91c1c;
}

.mti-auth-field__error {
    font-size: 0.8125rem;
    color: #b91c1c;
    margin: 0;
}

.mti-auth-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mti-auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    cursor: pointer;
}

.mti-auth-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    text-underline-offset: 3px;
}

button.mti-auth-link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.mti-auth-card__footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
}

.mti-auth-card__footer-text {
    font-size: 0.875rem;
    color: #555;
    margin: 0;
}

.tf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.tf-btn:hover {
    background: #1a1a1a;
}

.tf-btn--secondary {
    background: #fff;
    color: #111;
    border-color: #111;
}

.tf-btn--secondary:hover {
    background: #f5f5f5;
}

.w-100 { width: 100%; }

.text-tiny {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #555;
}

.mb-0 { margin-bottom: 0; }

.mt-16 { margin-top: 16px; }

.mb-20 { margin-bottom: 20px; }

@media (max-width: 575px) {
    .mti-auth-card {
        padding: 32px 22px 24px;
    }
}
