/* Simple Membership Plugin Styles */

/* Forms */
.sm-login-form,
.sm-register-form,
.sm-account {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sm-form-group {
    margin-bottom: 20px;
}

.sm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.sm-form-group input[type="text"],
.sm-form-group input[type="email"],
.sm-form-group input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.sm-form-group input[type="text"]:focus,
.sm-form-group input[type="email"]:focus,
.sm-form-group input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
}

.sm-form-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Buttons */
.sm-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.sm-button:hover {
    background: #e0e0e0;
    color: #333;
}

.sm-button-primary {
    background: #0073aa;
    color: #fff;
}

.sm-button-primary:hover {
    background: #005a87;
    color: #fff;
}

button.sm-button,
button.sm-button-primary {
    width: 100%;
}

/* Messages */
.sm-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.sm-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sm-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sm-form-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

/* Restriction Messages */
.sm-restriction-message {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.sm-restriction-message h3 {
    margin-top: 0;
    color: #333;
}

.sm-restriction-message p {
    margin-bottom: 20px;
    color: #666;
}

.sm-restriction-message .sm-button {
    margin: 0 5px;
}

/* Account Page */
.sm-account h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
}

.sm-account-info {
    margin-bottom: 30px;
}

.sm-account-info h3 {
    margin-bottom: 15px;
    color: #333;
}

.sm-info-table {
    width: 100%;
    border-collapse: collapse;
}

.sm-info-table th,
.sm-info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sm-info-table th {
    font-weight: 600;
    color: #666;
    width: 40%;
}

.sm-info-table td {
    color: #333;
}

.sm-status-active {
    color: #28a745;
    font-weight: 600;
}

.sm-status-inactive {
    color: #dc3545;
    font-weight: 600;
}

.sm-account-actions {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 600px) {
    .sm-login-form,
    .sm-register-form,
    .sm-account {
        padding: 20px;
        margin: 10px;
    }
    
    .sm-restriction-message {
        padding: 20px;
    }
    
    .sm-restriction-message .sm-button {
        display: block;
        margin: 10px 0;
    }
}
