/* MPS Pin Exchange Styles */

/* ── Shared wrapper ─────────────────────────────────────── */
.mps-pin-form-wrap,
.mps-pin-list-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 15px;
    color: #333;
}

.mps-pin-form-wrap h2,
.mps-pin-list-wrap h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
}

/* ── Messages ───────────────────────────────────────────── */
.mps-pin-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.mps-pin-success {
    background: #eaf7ec;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.mps-pin-error {
    background: #fdecea;
    border: 1px solid #f44336;
    color: #c62828;
}

.mps-pin-notice {
    background: #e3f2fd;
    border: 1px solid #1976d2;
    color: #0d47a1;
}

/* ── Form ───────────────────────────────────────────────── */
.mps-pin-form p {
    margin: 0 0 14px;
}

.mps-pin-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.mps-pin-form label .required {
    color: #c62828;
}

.mps-pin-hint {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
    line-height: 1.4;
}

.mps-pin-form input[type="text"] {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.mps-pin-form input[type="text"]:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

/* ── Buttons (shared) ───────────────────────────────────── */
.mps-pin-submit,
.mps-pin-refresh-btn {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.mps-pin-submit {
    background: #1976d2;
    color: #fff;
}

.mps-pin-submit:hover {
    background: #1565c0;
}

.mps-pin-refresh-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

.mps-pin-refresh-btn:hover {
    background: #e0e0e0;
    text-decoration: none;
    color: #333;
}

/* ── Table ──────────────────────────────────────────────── */
.mps-pin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}

.mps-pin-table th,
.mps-pin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.mps-pin-table th {
    background: #fafafa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #555;
}

.mps-pin-table tbody tr:hover {
    background: #f5f8ff;
}

/* ── Login notice ───────────────────────────────────────── */
.mps-pin-login-notice {
    padding: 12px 16px;
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 4px;
    color: #e65100;
    font-size: 14px;
}

.mps-pin-login-notice a {
    color: #1976d2;
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .mps-pin-form-wrap,
    .mps-pin-list-wrap {
        padding: 12px;
    }

    .mps-pin-table th,
    .mps-pin-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
}
