/* Base layout */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
}

.msp-body {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.msp-container {
    max-width: 480px;
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.msp-header {
    text-align: center;
    margin-bottom: 16px;
}

.msp-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.msp-logo-link {
    display: inline-block;
}

.msp-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.msp-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msp-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    width: 100%;
}

.msp-card h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.msp-card p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #4b5563;
}

.msp-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 12px 0 4px;
}

.msp-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
}

.msp-btn-full {
    width: 100%;
}

.msp-btn.primary {
    background: #2563eb;
    color: #ffffff;
}

.msp-btn.secondary {
    background: #e5e7eb;
    color: #111827;
}

.msp-btn:hover {
    opacity: 0.95;
}

.msp-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 8px;
}

.msp-footer {
    text-align: center;
    padding: 12px 0 4px;
    font-size: 0.75rem;
    color: #9ca3af;
}

.msp-text-small {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 12px;
}

/* Formulaires */

.msp-form {
    margin-top: 8px;
}

.msp-form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msp-form-group label {
    font-size: 0.9rem;
    color: #374151;
}

.msp-form-group input {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
}

.msp-form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

/* Messages */

.msp-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.msp-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.msp-alert.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Responsive */

@media (min-width: 768px) {
    .msp-container {
        max-width: 520px;
        padding-top: 32px;
        padding-bottom: 32px;
    }
}
