/* Estilos generales del plugin */
.cur-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cur-form h2 {
    color: #2c7fb8;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.cur-form-group {
    margin-bottom: 20px;
}

.cur-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.cur-form-group input[type="text"],
.cur-form-group input[type="email"],
.cur-form-group input[type="tel"],
.cur-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.cur-form-group input:focus,
.cur-form-group select:focus {
    outline: none;
    border-color: #2c7fb8;
}

.cur-radio-group {
    margin: 10px 0;
}

.cur-radio-group label {
    margin-right: 20px;
    cursor: pointer;
    display: inline-block;
}

.cur-radio-group input[type="radio"] {
    margin-right: 5px;
    vertical-align: middle;
}

.cur-checkbox-group,
.cur-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.cur-checkbox-group label,
.cur-radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.cur-checkbox-group label:hover,
.cur-radio-group label:hover {
    background-color: #e9ecef;
}

.cur-checkbox-group input[type="checkbox"],
.cur-radio-group input[type="radio"] {
    /* appearance: none; */
    /* -webkit-appearance: none; */
    width: 20px;
    height: 20px;
    border: 2px solid #2c7fb8;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Estilos para los términos y condiciones */
.terminos-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.terminos-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.checkbox-wrapper {
    flex-shrink: 0;
    padding-top: 2px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

.terminos-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.ver-terminos {
    color: #2c7fb8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.ver-terminos:hover {
    color: #1a5f8d;
}

.ver-terminos:hover {
    text-decoration: underline;
}

/* Estilos para el modal de términos */
.cur-modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
}

.cur-modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

.cur-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #718096;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s ease;
}

.cur-modal-close:hover {
    color: #2c7fb8;
}

.cur-modal h3 {
    color: #2c7fb8;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-right: 40px;
}

.cur-modal-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
}

.cur-radio-group input[type="radio"] {
    border-radius: 50%;
}

.cur-checkbox-group input[type="checkbox"]:checked,
.cur-radio-group input[type="radio"]:checked {
    background-color: #2c7fb8;
    border-color: #2c7fb8;
}

.cur-checkbox-group input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.cur-radio-group input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.cur-checkbox-group input[type="checkbox"]:focus,
.cur-radio-group input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 127, 184, 0.2);
}

#laboratorio-input {
    margin-top: 10px;
    padding-left: 20px;
}

#laboratorio-input input[type="text"] {
    width: 100%;
    max-width: 300px;
}

/* Botones */
.cur-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.cur-btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.2s ease;
}

.cur-btn-primary:hover {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.cur-btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.cur-btn-secondary:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cur-btn-danger {
    background: #dc3545;
    color: white;
}

.cur-btn-danger:hover {
    background: #c82333;
}

/* Mensajes */
.cur-message {
    padding: 12px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.cur-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cur-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard del usuario */
.cur-user-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cur-user-dashboard h2 {
    color: #2c7fb8;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cur-user-info {
    margin-bottom: 30px;
}

.cur-user-info h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.cur-info-table {
    width: 100%;
    border-collapse: collapse;
}

.cur-info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.cur-info-table td {
    padding: 12px 0;
    vertical-align: top;
}

.cur-info-table td:first-child {
    width: 200px;
    color: #666;
}

.cur-info-table td:last-child {
    color: #333;
}

.cur-logout-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.cur-logout-section .cur-btn {
    max-width: 200px;
}

/* Botones específicos para formularios (mejor apariencia) */
.cur-login-form-wrapper .cur-btn,
.cur-registration-form-wrapper .cur-btn {
    max-width: 320px;
    margin: 0 auto;
    display: block;
    font-weight: 700;
    border-radius: 8px;
}

/* Hacer el botón de ingresar y registro más visibles en pantallas pequeñas */
@media (max-width: 480px) {
    .cur-login-form-wrapper .cur-btn,
    .cur-registration-form-wrapper .cur-btn {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        font-size: 15px;
    }
}

/* Loading spinner */
.cur-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .cur-form,
    .cur-user-dashboard {
        padding: 20px;
    }
    
    .cur-info-table td:first-child {
        width: 150px;
    }
}

/* Decoración de fondo (opcional) */
.cur-registration-form-wrapper,
.cur-login-form-wrapper {
    position: relative;
    padding: 40px 20px;
    min-height: 100vh;
    /* display: flex; */
    align-items: center;
    justify-content: center;
}

.cur-registration-form-wrapper::before,
.cur-login-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="20" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="10" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 200px 200px;
    opacity: 0.3;
}

/* Enlaces */
.cur-form a {
    color: #2c7fb8;
    text-decoration: none;
}

.cur-form a:hover {
    text-decoration: underline;
}

/* Validación de formulario */
.cur-form input:invalid {
    border-color: #dc3545;
}

.cur-form input:valid {
    border-color: #28a745;
}

.cur-form-group.error input,
.cur-form-group.error select {
    border-color: #dc3545;
}

.cur-form-group.error label {
    color: #dc3545;
}

.cur-error-text {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}