/**
 * MARC Access Control Styles
 */

.marc-access-control-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.marc-access-form {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.marc-access-form h2 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.marc-access-form p {
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.form-group button {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #005a87;
}

.form-group button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.marc-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.marc-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.marc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.marc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 480px) {
    .marc-access-control-wrapper {
        padding: 1rem;
    }
    
    .marc-access-form {
        padding: 1.5rem;
    }
    
    .marc-access-form h2 {
        font-size: 1.25rem;
    }
}

/* WordPress admin meta box styles */
.post-type-post #marc_access_control,
.post-type-page #marc_access_control {
    margin-top: 0;
}

#marc_access_control .inside {
    padding: 10px;
}

#marc_access_control label {
    font-weight: 500;
}

#marc_access_control .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Settings page styles */
.marc-ac-settings-help {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.marc-ac-settings-help h2 {
    margin-top: 0;
    color: #333;
}

.marc-ac-settings-help ol {
    margin-left: 20px;
}

.marc-ac-settings-help li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.marc-ac-settings-help code {
    background: #fff;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
}

#marc_ac_password_page {
    min-width: 300px;
}

/* Archive protection checkboxes */
.marc-archive-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 10px;
}

.marc-checkbox-item {
    display: block;
    margin-bottom: 8px;
    padding: 4px 0;
    cursor: pointer;
}

.marc-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
}