/* Index landing: login + signup (index.php) */

.mps-index-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f4faf6 0%, #eef4f0 48%, #e8f0eb 100%);
}

.mps-index-main {
    padding-bottom: 48px;
}

.mps-index-guest {
    display: block;
    font-size: 0.95rem;
    color: #5a6b7a;
    text-align: right;
}

.mps-auth-page-alerts {
    max-width: 920px;
    margin: 0 auto 20px;
}

.mps-auth-page-alerts .mps-auth-alert:last-child {
    margin-bottom: 0;
}

.mps-auth-landing {
    margin-top: 8px;
}

.mps-auth-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 28px;
}

.mps-auth-intro__title {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #1f3646;
}

.mps-auth-intro__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #5a6b7a;
}

.mps-auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
    align-items: start;
}

.mps-auth-card {
    background: #fff;
    border: 1px solid rgba(31, 54, 70, 0.12);
    border-radius: 16px;
    padding: 24px 22px 26px;
    box-shadow: 0 8px 32px rgba(20, 46, 76, 0.07);
}

.mps-auth-card--signup {
    padding-bottom: 20px;
}

.mps-auth-card__title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #166534;
    text-align: center;
}

.mps-auth-card__hint {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: #5a6b7a;
    text-align: center;
}

.mps-auth-form {
    margin: 0;
}

.mps-auth-field {
    margin-bottom: 16px;
}

.mps-auth-field:last-of-type {
    margin-bottom: 0;
}

.mps-auth-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f3646;
}

.mps-auth-form .form-control {
    border-radius: 10px;
    border-color: rgba(31, 54, 70, 0.2);
}

.mps-auth-form .form-control:focus {
    border-color: #50c878;
    box-shadow: 0 0 0 0.2rem rgba(80, 200, 120, 0.2);
}

.mps-auth-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.mps-auth-submit {
    min-width: 140px;
    border-radius: 10px;
    padding: 0.45rem 1.25rem;
    font-weight: 600;
}

.mps-auth-forgot-wrap {
    margin: 18px 0 0;
    text-align: center;
}

.mps-auth-link {
    color: #166534;
    font-weight: 600;
    text-decoration: none;
}

.mps-auth-link:hover {
    text-decoration: underline;
    color: #0f4d26;
}

.mps-auth-alert {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.mps-auth-alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

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

.mps-auth-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a5f;
}

.mps-auth-toolbar {
    display: flex;
    justify-content: center;
    margin: 16px 0 24px;
}

.mps-auth-toolbar form {
    margin: 0;
}

.mps-auth-status {
    max-width: 640px;
    margin: 0 auto 28px;
    padding: 22px 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(120, 90, 20, 0.08);
}

.mps-auth-status__title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #92400e;
    text-align: center;
}

.mps-auth-status p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #78350f;
}

.mps-auth-status p:last-child {
    margin-bottom: 0;
}

.mps-auth-status__email {
    font-weight: 600;
    word-break: break-all;
}

.mps-signup-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -6px;
    padding: 4px 6px 8px;
}

.mps-signup-scroll table {
    margin: 0 auto;
}

@media (max-width: 720px) {
    .mps-index-guest {
        text-align: center;
    }

    .public-header__user-panel {
        width: 100%;
    }
}
