.mofi-auth-shell {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f8f7 42%, #eef3f0 100%);
    color: #1f292d;
}

.mofi-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 0;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0;
}

.mofi-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #123c4a;
    text-decoration: none;
}

.mofi-auth-brand:hover {
    color: #123c4a;
    text-decoration: none;
}

.mofi-auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #123c4a;
    color: #ffffff;
}

.mofi-auth-brand strong,
.mofi-auth-brand small {
    display: block;
    line-height: 1.2;
}

.mofi-auth-brand strong {
    font-size: 16px;
    font-weight: 700;
}

.mofi-auth-brand small {
    color: #69767b;
    font-size: 12px;
}

.mofi-auth-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
}

.mofi-auth-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    color: #425157;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.mofi-auth-nav a:hover,
.mofi-auth-nav a:focus {
    background: #edf2f0;
    color: #123c4a;
    text-decoration: none;
}

.mofi-auth-nav .mofi-auth-nav-primary {
    border: 1px solid #cfd8d3;
    background: #ffffff;
    color: #123c4a;
}

.mofi-auth-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 76px;
}

.mofi-auth-card {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid #e1e5e2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(20, 37, 44, 0.08);
}

.mofi-auth-card-narrow {
    width: min(100%, 520px);
}

.mofi-auth-kicker {
    margin: 0 0 0.5rem;
    color: #68767a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mofi-auth-card h1 {
    margin: 0;
    color: #1f292d;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0;
}

.mofi-auth-subtitle {
    margin: 0.45rem 0 1.5rem;
    color: #69767b;
    font-size: 15px;
    line-height: 1.5;
}

.mofi-auth-card .form-label {
    margin-bottom: 0.4rem;
    color: #344047;
    font-size: 14px;
    font-weight: 700;
}

.mofi-auth-card .form-control,
.mofi-auth-card .form-select {
    min-height: 44px;
    border-color: #d8dfdb;
    border-radius: 8px;
    font-size: 15px;
}

.mofi-auth-card .form-control:focus,
.mofi-auth-card .form-select:focus {
    border-color: #123c4a;
    box-shadow: 0 0 0 0.2rem rgba(18, 60, 74, 0.12);
}

.mofi-auth-card .form-check-input:checked {
    border-color: #123c4a;
    background-color: #123c4a;
}

.mofi-auth-card .form-check-label {
    color: #425157;
    font-size: 14px;
    line-height: 1.55;
}

.mofi-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e7ebe8;
}

.mofi-auth-actions a,
.mofi-auth-card a {
    color: #6f4b68;
    font-weight: 700;
    text-decoration: none;
}

.mofi-auth-actions a:hover,
.mofi-auth-card a:hover,
.mofi-auth-actions a:focus,
.mofi-auth-card a:focus {
    color: #123c4a;
    text-decoration: underline;
}

.mofi-auth-card .btn-primary {
    min-height: 44px;
    border-color: #123c4a;
    border-radius: 8px;
    background: #123c4a;
    font-weight: 700;
}

.mofi-auth-card .btn-primary:hover,
.mofi-auth-card .btn-primary:focus {
    border-color: #1e5b6b;
    background: #1e5b6b;
}

.mofi-auth-card .btn-outline-primary {
    min-height: 44px;
    border-color: #cfd8d3;
    border-radius: 8px;
    color: #123c4a;
    font-weight: 700;
}

.mofi-auth-card .btn-outline-primary:hover,
.mofi-auth-card .btn-outline-primary:focus {
    border-color: #123c4a;
    background: #123c4a;
    color: #ffffff;
}

.mofi-auth-card .alert {
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    .mofi-auth-header {
        width: min(100%, calc(100% - 32px));
    }

    .mofi-auth-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .mofi-auth-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .mofi-auth-main {
        width: min(100%, calc(100% - 32px));
        padding-top: 18px;
    }

    .mofi-auth-card {
        padding: 24px;
    }

    .mofi-auth-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .mofi-auth-actions .btn {
        width: 100%;
    }

    .mofi-auth-card h1 {
        font-size: 25px;
    }
}
