/**
 * Estilos CSS para el frontend del plugin Role Access Control
 */

/* Formulario de login */
.rac-login-form {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rac-login-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #23282d;
    font-size: 24px;
}

.rac-login-form form {
    margin: 0;
}

.rac-login-form p {
    margin-bottom: 15px;
}

.rac-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.rac-login-form input[type="text"],
.rac-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.rac-login-form input[type="text"]:focus,
.rac-login-form input[type="password"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.rac-login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.rac-login-form input[type="submit"]:hover {
    background: #005a87;
}

.rac-register-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rac-register-link a {
    color: #0073aa;
    text-decoration: none;
}

.rac-register-link a:hover {
    text-decoration: underline;
}

/* Información de acceso */
.rac-access-info {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 0 4px 4px 0;
}

.rac-access-status {
    margin-bottom: 15px;
}

.rac-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.rac-status-public {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rac-status-restricted {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.rac-icon {
    margin-right: 6px;
    font-size: 16px;
}

.rac-icon-public:before {
    content: "🌐";
}

.rac-icon-restricted:before {
    content: "🔒";
}

.rac-allowed-roles {
    margin-top: 10px;
}

.rac-allowed-roles strong {
    display: block;
    margin-bottom: 8px;
    color: #23282d;
}

.rac-allowed-roles ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.rac-allowed-roles li {
    margin-bottom: 4px;
    color: #666;
}

/* Paleta de colores PharmaMar */
.rac-login-form input[type="submit"] {
    background: #002E52;
}

.rac-login-form input[type="submit"]:hover {
    background: #85CCD5;
    color: #002E52;
}

.rac-login-form input[type="text"]:focus,
.rac-login-form input[type="password"]:focus {
    border-color: #85CCD5;
    box-shadow: 0 0 0 1px #85CCD5;
}

.rac-access-info {
    border-left-color: #002E52;
}

.rac-register-link a {
    color: #002E52;
}

/* Responsive */
@media (max-width: 600px) {
    .rac-login-form {
        margin: 10px;
        padding: 15px;
    }
    
    .rac-login-form h3 {
        font-size: 20px;
    }
    
    .rac-access-info {
        margin: 10px;
        padding: 12px;
    }
}